Square root : sqrt « Math « Python






Square root

Square root

from math import sqrt

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

           
       








Related examples in the same category