DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
check if a number is perfect cube in python
x = int(input()) print(int(round(x ** (1. / 3))) ** 3 == x)
PREVIOUS
NEXT
Tagged:
#check
#number
#perfect
#cube
#python
ADD COMMENT
Topic
COMMENT
Name
7+9 =
Submit