generate cube in python code example
Example 1: cube a number python
>>> 3*3*3
27
>>>
>>> 3**3 # This is the same as the above
27
>>>
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))