mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
[ADD]: Improved tests in power recursion! (#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 <cclauss@me.com>
This commit is contained in:
parent
51805338af
commit
4154428351
|
@ -15,6 +15,8 @@
|
||||||
|
|
||||||
def power(base: int, exponent: int) -> float:
|
def power(base: int, exponent: int) -> float:
|
||||||
"""
|
"""
|
||||||
|
Calculate the power of a base raised to an exponent.
|
||||||
|
|
||||||
>>> power(3, 4)
|
>>> power(3, 4)
|
||||||
81
|
81
|
||||||
>>> power(2, 0)
|
>>> power(2, 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user