We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0f743 commit 2124070Copy full SHA for 2124070
fibonacci.py
@@ -0,0 +1,9 @@
1
+def fibonacci(n):
2
+ if n == 0:
3
+ return 0
4
+ if n == 1:
5
+ return 1
6
+ return fibonacci(n - 1) + fibonacci(n - 2)
7
+
8
+for i in range(0, 10):
9
+ print(fibonacci(i))
0 commit comments