Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ fact
Function
fact
Lib/test/test_itertools.py:68–70 ·
view source on GitHub ↗
Factorial
(n)
Source
from the content-addressed store, hash-verified
66
return
reduce(operator.mul, iterable, 1)
67
68
def
fact(n):
69
'Factorial'
70
return
prod(range(1, n+1))
71
72
# root level methods for pickling ability
73
def
testR(r):
Callers
6
fact
Method · 0.85
f
Method · 0.85
test_combinations
Method · 0.85
numcombs
Method · 0.85
test_permutations
Method · 0.85
test_combinatorics
Method · 0.85
Calls
1
prod
Function · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…