summaryrefslogtreecommitdiff
path: root/test/3-3.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/3-3.py')
-rw-r--r--test/3-3.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/3-3.py b/test/3-3.py
new file mode 100644
index 0000000..af57e46
--- /dev/null
+++ b/test/3-3.py
@@ -0,0 +1,8 @@
+
+def fibonacci(n):
+ if ((n == 0) or (n == 1)):
+ return 1
+ else:
+ return (fibonacci(n-1) + fibonacci(n-2))
+
+print(fibonacci(6))