This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-github
/
ruby--ruby
mirror of
https://github.com/ruby/ruby.git
Watch
1
Star
0
Fork
You've already forked ruby--ruby
0
Code
Releases
Activity
d2926df775
ruby--ruby
/
benchmark
/
other-lang
/
fib.py
8 lines
85 B
Python
Raw
Blame
History
def
fib
(
n
)
:
if
n
<
3
:
return
1
else
:
return
fib
(
n
-
1
)
+
fib
(
n
-
2
)
fib
(
34
)
View Git Blame
Copy Permalink