10 points Online Editor Link (Fork this): LINK Alternatively…
10 points Online Editor Link (Fork this): LINK Alternatively, you can also use the editor here: LINK Write a function exponent(a, b) that returns a raised to the power b (ab). Your function must use recursion. You may not use loops or any of the Python’s built-in exponent features. You may assume: a will be an integer b will be an integer greater than or equal to 0 Hints: 35 == 3 * 34 x0 == 1 Example: exponent(2, 4) # should return 16 exponent(-3, 3) # should return -27 exponent(0, 12) # should return 0 exponent(14, 0) # should return 1
Read Details