csc-python-solutions/18/1 - Nibbofacci

6 lines
115 B
Plaintext
Raw Normal View History

2021-02-17 13:22:08 +00:00
def Fibonacci(n):
if (n==1 or n==2):
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)