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
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