Learn how to filter values from an iterable in this lesson.

We'll cover the following

Filtering iterables

The filter function can be used to remove items from an iterable based on a testing function. It returns an iterator to access the result. Here is an example:

Get hands-on with 1200+ tech skills courses.