how to check a given number is perfect cube in python code example
Example: check if a number is perfect cube in python
x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)