Vidyalelo
Python · Q56

MCQs on Python Tuples: Exam

Programming · Python · question 56

Q56

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board