This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
main
RosettaCodeData
/
Task
/
Fibonacci-sequence
/
Python
/
fibonacci-sequence-5.py
5 lines
86 B
Python
Raw
Permalink
Normal View
History
Unescape
Escape
Data update
2026-02-01 16:33:20 -08:00
def
fib_rec
(
n
)
:
if
n
<
2
:
return
n
return
fib_rec
(
n
-
1
)
+
fib_rec
(
n
-
2
)
Reference in a new issue
Copy permalink