Python Membership Operators
Python Membership Operators
Membership operators are used to test if a sequence is presented in an object:
Operator | Description | Example | Try it |
---|---|---|---|
in | Returns True if a sequence with the specified value is present in the object | x in y | Try it » |
not in | Returns True if a sequence with the specified value is not present in the object | x not in y | Try it » |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.