1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/benchmark/other-lang/fib.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
85 B
Python
Raw Normal View History

def fib(n):
if n < 3:
return 1
else:
return fib(n-1) + fib(n-2)
fib(34)