Log in
← All problems

Power, recursively

easyRecursion10 XP

Return base raised to exp (0 or more) without ** or pow: use base^exp = base × base^(exp − 1), with base^0 = 1.

Examples

Examples use JSON: true/false/null are True/False/None in Python.

Run examples checks the examples above. Submit also runs 3 hidden tests.