• functools
  • reduce
>>> from functools import reduce
>>> from operator import add
>>> reduce(add, range(10))
45