Hello World, Welcome to projectsplaza.com. In this example, we will calculate the power of the number. We will take the number and power from the user and calculate it with python function. We will do this in the following steps.
- get to input from the user
- calculate the number of power with
def power_multiply(): number=int(input('Enter the number ')) power=int(input('Enter the power ')) print(number**power) power_multiply()
Output of this example