Python program to find Power of a Number

import math
base_num = float(input("Enter the base:"))
exponent = float(input("Enter the exponent:"))
power = math.pow(base_num,exponent)
print("Power is =",power)

OUTPUT:

Enter the base :2
Enter the exponent: 4
Power is = 16.0

Sharing Is Caring

Leave a Comment