csc-python-solutions/18/1 - Nibbofacci.py
2021-02-17 14:23:21 +01:00

6 lines
115 B
Python

def Fibonacci(n):
if (n==1 or n==2):
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)