Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShivaBhattacharjee/KeyZen
/ factorial
Function
factorial
data/python/01_functions.py:4–7 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
2
return
max(lo, min(value, hi))
3
4
def
factorial(n):
5
if
n <= 1:
6
return
1
7
return
n * factorial(n - 1)
8
9
def
make_adder(n):
10
def
adder(x):
Callers
1
01_functions.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected