Sprawdź, czy liczba jest idealna kostka w Python

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