check if number is a perfect square of number in python one liner code example Example: python num perfect squares print(int(int(n)**.5))