Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/agenticsorg/edge-agents
/ fibonacci
Function
fibonacci
scripts/sparc2/python-example.py:1–6 ·
view source on GitHub ↗
Calculate the nth Fibonacci number.
(n)
Source
from the content-addressed store, hash-verified
1
def
fibonacci(n):
2
""
"Calculate the nth Fibonacci number."
""
3
if
n <= 1:
4
return
n
5
else
:
6
return
fibonacci(n-1) + fibonacci(n-2)
7
8
# Test the function
9
for
i in range(10):
Callers
1
python-example.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected