Python Language Cumulative product

Download Python Language for free

Example

import operator
reduce(operator.mul, [10, 5, -3])
# Out: -150
First truthy/falsy element of a sequence (or last element if there is none)