Reduce function with add
import operator print reduce(operator.add, [2, 4, 6]) # function-based + print reduce((lambda x, y: x + y), [2, 4, 6])