What will be the output of the following Python code?
>>> a=(1,2,(4,5))
>>> b=(1,2,(3,4))
>>> a<b
>>> a=(1,2,(4,5))
>>> b=(1,2,(3,4))
>>> a<b
A. False
B. True
C. Error, < operator is not valid for tuples
D. Error, < operator is valid for tuples but not if there are sub-tuples
Answer: Option A
Join The Discussion