Breaking Out of Loops : Break : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Break »

 

Breaking Out of Loops


from math import sqrt 

for n in range(99-1):
    root = sqrt(n
    if root == int(root):
       print root
       break



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Statement
» Break