MCPcopy 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
65def prod(iterable):
66 return reduce(operator.mul, iterable, 1)
67
68def fact(n):
69 'Factorial'

Callers 2

factFunction · 0.70
test_productMethod · 0.70

Calls 1

reduceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…