Q. What does the Python code: x = [1, 2, 3]; print(1 in x) output?
Solution:
The in operator checks if 1 is present in the list x, returning True since 1 is an element.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
The in operator checks if 1 is present in the list x, returning True since 1 is an element.
Strengthen Your Practice with our comprehensive question bank.