Beginner
Python
Q26 / 101
What does the in operator do with a list?
Correct! Well done.
Incorrect.
The correct answer is C) Checks if a value is present in the list
C
Correct Answer
Checks if a value is present in the list
Explanation
3 in [1, 2, 3] returns True. For lists this is O(n); for sets and dict keys it is O(1).
Progress
26/101