CBSE Class 11 Computer Science Question 62 of 88

Tuples and Dictionary — Question 27

Back to all questions
27
Question

Question 14(d)

Consider the following code and find out the error:

t1 = (10, 20, 30, 40) 
X, Y, Z = t1
Answer

The code will result in an Error because the number of variables on the left side of the assignment (X, Y, Z) does not match the number of elements in the tuple t1.