← BYTES
Python·Starter·Ref: 6.1.10
What does the `in` operator check when used with a list, e.g. `3 in [1, 2, 3]`?
Have a question about this video? Mention reference 6.1.10 when you contact us.
a.Whether the list has exactly 3 elements
b.Whether 3 is the list's first element
c.Whether the list is sorted
d.Whether the given value exists anywhere among the list's elements
`value in list` checks for membership -- whether that exact value appears anywhere in the list -- returning True or False.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES6110#Python