Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ prod
Function
prod
Lib/test/test_itertools.py:65–66 ·
view source on GitHub ↗
(iterable)
Source
from the content-addressed store, hash-verified
63
return
list(islice(seq, n))
64
65
def
prod(iterable):
66
return
reduce(operator.mul, iterable, 1)
67
68
def
fact(n):
69
'Factorial'
Callers
2
fact
Function · 0.70
test_product
Method · 0.70
Calls
1
reduce
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…