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
Answer and explanation
Concise answer
score <= 50
Why this is correct
The <= operator means less than or equal to. The expression includes both values below 50 and the value 50 itself.
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.
