Python-Quizzes | Python Tuples Quiz | Question 3
Question 3: What is the output of the following program?
tuple1 = ( 1 , 2 , 4 , 3 ) tuple2 = ( 1 , 2 , 3 , 4 ) print (tuple1 < tuple2) |
(A) Error
(B) True
(C) False
(D) Unexpected
Answer: (C)
Explanation: In this case elements will be compared one by one. So, when it compares 4 with 3 it will return False.
Quiz of this Question
Please comment below if you find anything wrong in the above post