OnlinePython

Function Recursion Exercise

Question 1 of 5

You need to write a recursive function to calculate the power of a number (base^exponent). Which implementation is correct?

# Calculate 2^3 = 8