logo

Question detail

Which Python 3 expression checks whether the value stored in score is less than or equal to 50?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

Which Python 3 expression checks whether the value stored in score is less than or equal to 50?.

  1. A.score < 50
  2. B.score <= 50
  3. C.score =< 50
  4. 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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.