Python Üyelik Operatörleri
Python Üyelik Operatörleri
Üyelik operatörleri, bir nesnede bir dizinin sunulup sunulmadığını test etmek için kullanılır:
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 |