break Statement : While : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » While »

 

break Statement


num = 4
count = num / 2
while count > 0:
    if num % count == 0:
        print count, 'is the largest factor of', num
        break
    count -= 1



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» While