In Python .......... operator is used to determine the element's presence or…
2024
In Python .......... operator is used to determine the element's presence or absence in list.
- A.
find
- B.
in
- C.
search
- D.
lookup
Attempted by 1293 students.
Show answer & explanation
Correct answer: B
Explanation
The 'in' operator is used to check if a value exists within a sequence like a list.
It returns True if the element is present and False if it is absent.
Example: 'x' in ['a', 'b'] evaluates to True.