Webeduclick.com
Computer Science Tutorials
def cube(x): return x * x * x n = int(input(" Enter the number : ")) cube1 = cube(n) print("The Cube of {0} = {1}".format(n, cube1))
Output: Enter the number : 5 The Cube of 5 = 125