in a range : in : Buildin Function : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Buildin Function   » [  in  ]  Screenshots 
 



in a range




from math import sqrt

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

           
       
Related examples in the same category
1.  in function demo in function demo
2.  in can be applied to any 'iterable' object in can be applied to any 'iterable' object
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.