Answers for "perfect cube 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
0

how to perform cube in python

# Python Program to Calculate Cube of a Number

number = float(input(" Please Enter any numeric Value : "))

cube = number * number * number

print("The Cube of a Given Number {0}  = {1}".format(number, cube))
Posted by: Guest on April-23-2020

Code answers related to "perfect cube in python"

Python Answers by Framework

Browse Popular Code Answers by Language