how to write cube in python code example
Example 1: cube root in python
a=125
print(a**(1/3))
Example 2: 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))