Operatory członkostwa w Pythonie
Operatory członkostwa w Pythonie
Operatory przynależności służą do sprawdzania, czy sekwencja jest prezentowana w obiekcie:
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 |