check whether number is perfect square or not python code example Example: python num perfect squares print(int(int(n)**.5))