>>> reduce(lambda x, y: x*y, [2,3,4,5], 1) 120 >>> import operator >>> reduce(operator.mul, [2,3,4,5]) 120
Comment