Python -lidmaatskapoperateurs
Python-lidmaatskapoperateurs
Lidmaatskapoperateurs word gebruik om te toets of 'n volgorde in 'n voorwerp aangebied word:
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 |