Skip to content

Commit b6570ea

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 4926055 commit b6570ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

maths/fibonacci.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ def fib_memo(n):
4343
return fib_memo(n)
4444

4545
else:
46-
raise ValueError("Invalid method. Choose 'iterative', 'recursive', or 'memoized'.")
46+
raise ValueError(
47+
"Invalid method. Choose 'iterative', 'recursive', or 'memoized'."
48+
)
4749

4850

4951
# Example Usage:
5052
if __name__ == "__main__":
51-
print(fibonacci(10)) # Default (iterative)
52-
print(fibonacci(10, "recursive")) # Recursive method
53-
print(fibonacci(10, "memoized")) # Memoized method
53+
print(fibonacci(10)) # Default (iterative)
54+
print(fibonacci(10, "recursive")) # Recursive method
55+
print(fibonacci(10, "memoized")) # Memoized method

0 commit comments

Comments
 (0)