What is the output of print((1, 2, 3) < (1, 3)) in Python?
print((1, 2, 3)
Correct answer
A. True
7 views
A. True
7 views
Tuples compare element by element, lexicographically.
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is A? Ask here and get an explanation.