Recursion | Sololearn: Learn to code for FREE!

+4

Recursion

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

+4

i just leaent recursion

+3

https://code.sololearn.com/c6b0S9tvufiN/?ref=app

+2

I mean, it doesn't really use recursion but meh lmao xD https://code.sololearn.com/c2GSpv1yzJ1l/?ref=app

+2

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