1.

Is the following Python code valid?>>> a,b=1,2,3

A. yes, this is an example of tuple unpacking. a=1 and b=2
B. yes, this is an example of tuple unpacking. a=(1,2) and b=3
C. no, too many values to unpack
D. yes, this is an example of tuple unpacking. a=1 and b=(2,3)
Answer» D. yes, this is an example of tuple unpacking. a=1 and b=(2,3)


Discussion

No Comment Found