CBSE Class 12 Computer Science
Question 113 of 120
Review of Python Basics — Question 8
Back to all questionsFalse
Reason — The assignment operator (=) is used to assign a value to a variable, whereas the equality operator (==) is used to compare two values for equality. Using the assignment operator in a test condition would result in assigning a value instead of comparing values. This can lead to unexpected behavior in code and may not achieve the intended comparison.