Computer Science

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

Python Funda

23 Likes

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

Answered By

12 Likes


Related Questions