Search⌘ K

Built-In Functions

Explore how Python’s built-in functions operate on iterables in this lesson. Learn to use creation functions like list and tuple, transforming functions like map and filter, and reducing functions such as sum and min. Understand how to manipulate iterators for efficient data processing in functional programming.

Groups of built-in functions

Python includes a number of functions that operate on iterables. We can split these into four groups.

Primitive functions

The iter and next functions perform primitive operations on iterables/iterators. We covered these earlier in this chapter.

Creation/conversion functions

We have seen earlier that the list and tuple functions can be used to realize a lazy ...