Exam-style question
Try this first
For each relational operator below, state what it tests and give one Python 3 example: ==, !=, <, >, <= and >=.
Answer and explanation
Concise answer
== tests equal to, for example 5 == 5.
Why this is correct
Each operator compares two values and produces a Boolean result. The examples show the correct meaning and Python 3 spelling of all six required relational operations.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
