This is a python program by which you can ask the user to print two numbers ‘x’ and ‘y’ then print out the number ‘x’ raised to power ‘y’.
Contents
Python Program
Here is the code:
#Ask the user to print two numbers ‘x’ and ‘y’ then print out the number ‘x’ raised to power ‘y’.
x = 2
y = 3
print('X = ', x)
print('Y = ', y)
print('X^Y =', x**y)
# This code is contributed by Ahmad Shafiq