Real Python

Sample Code: Click here to download the free source code that you’ll use to find the first match in a Python list or iterable.

Almost there! Complete this form and click the button below to gain instant access:

How to Get the First Match From a Python List or Iterable

How to Get the First Match From a Python List or Iterable (Source Code)

๐Ÿ”’ No spam. We take your privacy seriously.

ยฉ 2012โ€“2025 Real Python โ‹… Privacy Policy