Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
check if a number is perfect cube in python
Francis Barton
Programming language:
Python
2021-07-16 22:45:58
0
Q:
check if a number is perfect cube in python
Scott Glasgow
Code:
Python
2021-08-10 22:59:44
x = int(input()) print(int(round(x ** (1. / 3))) ** 3 == x)
0
Tags
number
python
check
Related
determine if number is prime python
python see if a number is greater than other
how to check whole number in python
how to check if a number is prime in python
python check if number
python check if input is a number
check if a number is in a list python
python num perfect squares
python check if number is complex
how to check if string is a number python
cube a number python
check if string is number python
check if a number is prime python
program to find even numbers in python
how to check if digit in int python
how to check if a number is odd python
New to Communities?
Join the community