Finding the First Match From a Python Iterable



Finding the First Match From a Python Iterable

Finding the First Match From a Python Iterable

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:
https://realpython.com/courses/python-first-match/

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