Question Detail
Question
Which of the following describes the difference between
= and == in Python?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 14, 'Mistake #1: = vs ==', clearly states: '
= is for Assignment (giving a value)' and '== is for Comparison (checking a value)'.
Hint
This is a fundamental distinction in many programming languages. One sets a value, the other checks if values are the same.