Answers for "how to check if a number is square 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
1

python num perfect squares

print(int(int(n)**.5))
Posted by: Guest on July-24-2020

Code answers related to "how to check if a number is square in python"

Python Answers by Framework

Browse Popular Code Answers by Language