Examveda

What will be the output of the following Python code?
>>> 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


This Question Belongs to Python Program >> Tuples In Python

Join The Discussion

Related Questions on Tuples in Python