Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Python-Quizzes | Python Tuples Quiz | Question 3

  • Last Updated : 18 Sep, 2020

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!