Python 멤버십 연산자
Python 멤버십 연산자
멤버쉽 연산자는 시퀀스가 개체에 표시되는지 테스트하는 데 사용됩니다.
Operator | Description | Example | Try it |
---|---|---|---|
in | Returns True if a sequence with the specified value is present in the object | x in y | |
not in | Returns True if a sequence with the specified value is not present in the object | x not in y |