Python programs coding series - find the power of a number

find the power of a number

#find the power of a number import math

x = int(input(“Enter first number : ”)) y = int(input(“Enter second number : ”))

result=math.pow(x,y)

print(str(x)+” raised to the power of “+str(y)+” is equal to “+str(int(result)))

Output

Enter first number : 3 Enter second number : 3 3 raised to the power of 3 is equal to 27