python check if number is perfect square code example
Example 1: check if a number is perfect cube in python
x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
Example 2: python num perfect squares
print(int(int(n)**.5))
x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
print(int(int(n)**.5))