Skip to content

Commit e48d6c0

Browse files
committed
add recursive fibonacci
1 parent 7def346 commit e48d6c0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# My Python Examples
33

4-
I do not consider myself a programmer. I create these little programs as experiments to play with the language or to solve problems for myself. I would gladly accept pointers from others to improve, simplify, or make the code more efficient. If you would like to make any comments then please feel free to email me at craig@geekcomputers.co.uk.
4+
I do not consider myself a programmer. I create these little programs as experiments to play with the language, or to solve problems for myself. I would gladly accept pointers from others to improve, simplify, or make the code more efficient. If you would like to make any comments then please feel free to email me at craig@geekcomputers.co.uk.
55

66
These scripts contain important functions which help reduce human workload.
77
Code documentation is aligned correctly when the files are viewed in [Notepad++](https://notepad-plus-plus.org/).

recursive-fibonacci.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def fib(n):
2+
if n <= 1:
3+
return n
4+
else:
5+
return(fib(n-1) + fib(n-2))

0 commit comments

Comments
 (0)