Len and Sum
Learn how to reduce iterables using the "len" and "sum" functions.
We'll cover the following...
Reducing functions
In the earlier chapter on Iterators, we divided the built-in iterator functions into groups:
- Transforming functions
- Reducing functions
- Converting functions
- Primitive functions
In this chapter, we will cover the reducing functions.
A reducing function takes all the values from an iterable and reduces them to a single representative value. For ...
Access this course and 1400+ top-rated courses and projects.