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