CBSE Class 11 Informatics Practices Question 66 of 102

Python Programming Fundamentals — Question 27

Back to all questions
27
Question

Question 22

What is the error in the following code?

z, p = 6
Answer

The error arises because the right-hand side (RHS) has one value (6) while the left-hand side (LHS) has two variables (z, p). This mismatch causes a ValueError.