def pow(x, y): if y == 1: return x else: return pow(x, y-1) * x
if name == 'main': x = 2 #base y = 3 #power result = pow(x, y) print(x," to the power ", y, " is: ", result)
x = 10 #base
y = 3 #power
result = pow(x, y)
print(x," to the power ", y, " is: ", result)
x = 12 #base
y = 5 #power
result = pow(x, y)
print(x," to the power ", y, " is: ", result)