summaryrefslogtreecommitdiff
path: root/progs/a272.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a272.py')
-rw-r--r--progs/a272.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/progs/a272.py b/progs/a272.py
new file mode 100644
index 0000000..1f59edd
--- /dev/null
+++ b/progs/a272.py
@@ -0,0 +1,5 @@
+def fibonacci(n):
+ if n == 1 or n == 2:
+ return 1
+ else:
+ return (fibonacci(n - 1) + (fibonacci(n - 2))) \ No newline at end of file