Python- lidmaatschapsoperators
Python-lidmaatschapsoperators
Lidmaatschapsoperators worden gebruikt om te testen of een reeks in een object wordt gepresenteerd:
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 |