CBSE Class 12 Computer Science Question 107 of 120

Review of Python Basics — Question 2

Back to all questions
2
Question

Question 2

The statement: x + 1 = x is a valid statement.

Answer

False

Reason — In Python, literal values and expressions cannot be on the left-hand side (LHS) of an assignment statement. The left-hand side of an assignment statement must be a variable. Therefore, the statement "x + 1 = x" is invalid.