Exam-style question
Try this first
Which Python 3 expression checks whether the value stored in score is less than or equal to 50?.
- A.score < 50
- B.score <= 50
- C.score =< 50
- D.score == 50
Model answer
What a good answer should say
- score <= 50
Explanation
Why this works
The <= operator means less than or equal to. The expression includes both values below 50 and the value 50 itself.
Common mistake
No common mistake is linked to this question yet.
