M03 - Membership and Logical Operators Flashcards
1
Q
Membership Operators Definition
A
Used to test if an object, like a string, integer, or other data type is present in an expression, list, tuple, or dictionary
2
Q
in (membership operator)
A
Returns True if a sequence with the specified value is present in the object
3
Q
not in
A
Returns True if a sequence with the specified value is not present in the object
4
Q
Logical Operators (3x)
A
and
or
not