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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

in (membership operator)

A

Returns True if a sequence with the specified value is present in the object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

not in

A

Returns True if a sequence with the specified value is not present in the object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Logical Operators (3x)

A

and
or
not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly