Finding the First Match From a Python Iterable

preview_player
Показать описание
At some point in your Python journey, you may need to find the first item that matches a certain criterion in a Python iterable, such as a list or dictionary. The simplest case is that you need to confirm that a particular item exists in the iterable.

This is a portion of the complete course, which you can find here:

The rest of the course covers:
- Finding and modifying a dictionary in a list of dictionaries based on a certain attribute
- Comparing the Performance Between Loops and Generators
- Graphing Performance With matplotlib
- Making a Reusable Python Function to Find the First Match
Рекомендации по теме