Compruebe si un número es un cubo perfecto en Python

x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
Strange Seal