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