adplus-dvertising
frame-decoration

Question

Is the following piece of 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

Posted under Python

Answer: (d).Yes, (2,3,4,5) is printed

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Is the following piece of code valid?