You need to write a program in Python that checks if a given number is a perfect square or not.
36
def isPerfectSquare(n):
    root =  n ** 0.5
    return root == int(root)

result = isPerfectSquare(36)
print(result)