Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StackStorm/st2
/ fib
Function
fib
contrib/examples/actions/pythonactions/fibonacci.py:25–28 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
23
24
25
def
fib(n):
26
if
n < 2:
27
return
n
28
return
fib(n - 2) + fib(n - 1)
29
30
31
if
__name__ ==
"__main__"
:
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected