+ 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 **
4 Respuestas
+ 4
i just leaent recursion
+ 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