Skip to content

Commit ef29416

Browse files
imSankocclauss
authored andcommitted
[ADD]: Improved tests in power recursion! (TheAlgorithms#10664)
* Added new tests! * [ADD]: Inproved Tests * fixed * Removed spaces * Changed the file name * Added Changes * changed the code and kept the test cases * changed the code and kept the test cases * missed the line * removed spaces * Update power_using_recursion.py --------- Co-authored-by: Christian Clauss <[email protected]>
1 parent d496225 commit ef29416

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maths/power_using_recursion.py

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
def power(base: int, exponent: int) -> float:
1717
"""
18+
Calculate the power of a base raised to an exponent.
19+
1820
>>> power(3, 4)
1921
81
2022
>>> power(2, 0)

0 commit comments

Comments
 (0)