What is the output of the following Python code snippet?
x = 5
print(1
Correct answer
D. True
5 views
D. True
5 views
Chained comparisons are evaluated as 1 < x and x < 10.
Asked in: Python Interview Control Flow
https://docs.python.org/3/tutorial/controlflow.htmlNot sure why the answer is D? Ask here and get an explanation.