CBSE Class 11 Computer Science Question 69 of 106

Python Fundamentals — Question 18

Back to all questions
18
Question

Question 18

What is the error in following code : X, Y = 7 ?

Answer

The error in the above code is that we have mentioned two variables X, Y as Lvalues but only give a single numeric literal 7 as the Rvalue. We need to specify one more value like this to correct the error:

X, Y = 7, 8