We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7b2135 + 3573cb0 commit bdc4447Copy full SHA for bdc4447
Recursion.py
@@ -0,0 +1,6 @@
1
+def fibonacci(n):
2
+ if n == 0 or n == 1:
3
+ return n
4
+ else:
5
+ return fibonacci(n-1) + fibonacci(n-2)
6
+print(fibonacci(10))
0 commit comments