Vidyalelo
Python · Q57

MCQs on Python Tuples: Exam

Programming · Python · question 57

Q57

What will be the output of the following Python code? >>> a=(1,2,(4,5)) >>> b=(1,2,(3,4)) >>> a<b

A.
False
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board