zongors-reality-engine/test/fib.py

8 lines
106 B
Python

def fib(n):
if n < 2:
return n
return fib(n-1) + fib(n-2)
result = fib(35)
print(result)