Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ fib
Function
fib
recursive-fibonacci.py:1–5 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
1
def
fib(n):
2
if
n == 0 or n == 1:
3
return
n
4
else
:
5
return
fib(n - 1) + fib(n - 2)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected