how to check if an integer is a perfect square python code example Example: python num perfect squares print(int(int(n)**.5))