Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD]: Improved tests in power recursion! #10664

Merged
merged 12 commits into from
Oct 20, 2023
2 changes: 2 additions & 0 deletions maths/power_using_recursion.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

def power(base: int, exponent: int) -> float:
"""
Calculate the power of a base raised to an exponent.

>>> power(3, 4)
81
>>> power(2, 0)
Expand Down