Python Language Cumulative product


Example

import operator
reduce(operator.mul, [10, 5, -3])
# Out: -150