Skip to content

Commit 06fe8ea

Browse files
authored
Fix bug in equivalent_fib.py
Add missing ":" after else at line 6
1 parent 584b06b commit 06fe8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

equivalent_fib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ def fib(n):
33
"Calculate the Fibonacci numbers (in Python)."
44
if n <= 1:
55
return n
6-
else
6+
else:
77
return fib(n-1) + fib(n-2)

0 commit comments

Comments
 (0)