Question Detail

COS 102 If staments Objective Question

Question

Which of the following relational operators means 'Equal To' in Python?
Options
A =
B ==
Correct Answer
C !=
D >=
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 10, 'Relational Operators', clearly lists '==' as the operator for 'Equal To'. The single '=' is for assignment.

Hint

Be careful not to confuse assignment with comparison.

Question Info