Real Python

Source Code: Click here to download the free source code that you’ll use to perform membership tests in Python with in and not in.

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

Python's "in" and "not in" Operators: Check for Membership

Python's "in" and "not in" Operators: Check for Membership (Source Code)

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

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