For loop combined with in function : For In : Language Basics PYTHON examples


PYTHON examples » Language Basics » For In »

 

For loop combined with in function


For loop combined with in function


from math import sqrt

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

           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


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


PYTHON examples

 Navioo Language Basics
» For In