Recursion | Sololearn: Learn to code for FREE!



write a function power that accepts two arguments, a and b and calculates a raised to the power b. Example: power ( 2, 3) = 8 Raise a TypeError with the message Argument must be integer or float if the inputs are anything other that ints or floats. Note: Don't use **

10/10/2017 11:02:19 PM

Franklin Yaw Frimpong

4 Answers

New Answer


i just leaent recursion



I mean, it doesn't really use recursion but meh lmao xD


Yeah he never said it has to be a recursive function XD