3 ms·
Of course, it's just weird to see `sum` built-in all alone. They even have operator.mul so... >>> Prod = lambda xs: fp.reduce(op.mul, xs, 1) >>> Prod(r
by agumonkey 11y ago
Of course, it's just weird to see `sum` built-in all alone. They even have operator.mul so...
>>> Prod = lambda xs: fp.reduce(op.mul, xs, 1)
>>> Prod(range(1,11))
362880