Skip to content

Commit 007e848

Browse files
committed
Error Fix - 1 datatype
1 parent 9ebeb8f commit 007e848

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/exponent_recursion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def power(n: int, p: int) -> int:
2626

2727
result = power(n, abs(p))
2828
if p < 0:
29-
result = 1 / result
30-
print("{} to the power of {}: {}".format(n, p, result))
29+
newResult = 1 / result
30+
print("{} to the power of {}: {}".format(n, p, newResult))
3131
else:
3232
print("{} to the power of {}: {}".format(n, p, result))

0 commit comments

Comments
 (0)