from math import sqrtfor n in range(99, 82, -1): root = sqrt(n) if root == int(root): print n breakelse: print "Didn't find it!"