Sail E0 Webinar
Question
Is the following piece of code valid?a=2,3,4,5 a
Options:
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


A tuple needn't be enclosed in parenthesis.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers