Examveda

Is the following Python code valid?
>>> a=2,3,4,5
>>> a

A. Yes, 2 is printed

B. Yes, [2,3,4,5] is printed

C. No, too many values to unpack

D. Yes, (2,3,4,5) is printed

Answer: Option D


This Question Belongs to Python Program >> Tuples In Python

Join The Discussion

Related Questions on Tuples in Python