CHECK IF A NUMBER IS PERFECT SQUARE OR NOT IN PYTHON
def sqrt(x):
sqrt = x ** (1/2)
if x % (sqrt) == 0:
return round(sqrt)
else:
return -1
def sqrt(x):
sqrt = x ** (1/2)
if x % (sqrt) == 0:
return round(sqrt)
else:
return -1