Skip to content

Commit 0f258db

Browse files
authored
Fix typo
1 parent 7fed6a1 commit 0f258db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/power_using_recursion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Enter the exponent: 4
66
Output -->
77
3 to the power of 4: 81
8-
Inout -->
8+
Input -->
99
Enter the base: 2
1010
Enter the exponent: 0
1111
Output -->
@@ -33,4 +33,4 @@ def power(base: int, exponent: int) -> float:
3333
result = power(base, abs(exponent))
3434
if exponent < 0: # power() does not properly deal w/ negative exponents
3535
result = 1 / result
36-
print(f"{base} to the power of {exponent} is {result}"
36+
print(f"{base} to the power of {exponent} is {result}")

0 commit comments

Comments
 (0)