At My Fingertips

Documentation

Documentation

Function from library functools

reduce(functionsequence)

reducefunctionsequence

Repetedly call a function with the elements of a sequence from left to right, accumulating the result.

Optionally, an initial value can be used to start the accumulation.

functionA function that combines the accumulated value with an element of the sequence

sequenceA sequence of elements

The accumulated value

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version 6ea4c91 (Wed, 05 Feb 2025 09:34:19 GMT)