Functools Module

The functools module contains functions that support a functional programming approach in Python.

The following functions are provided by this module.

Functools Module

reduce()
Returns an aggregated value that results from the application of a passed function to each item in an iterable.

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn Python on Codecademy