Answers for "Check whether Square root equals to Cube root in python"

2

check if a number is perfect cube in python

x = int(input())
print(int(round(x ** (1. / 3))) ** 3 == x)
Posted by: Guest on August-24-2020

Python Answers by Framework

Browse Popular Code Answers by Language