nondescript/benchmarks/fib.py

7 lines
103 B
Python

def fib(n):
if n < 2:
return 1
else:
return fib(n-1) + fib(n-2)
print(fib(37))