← Quiz: Python Conditions: all 13 questions
Quiz: Python Conditions · Question 9 of 13
What does this print? (code)
What does this print?
marks = 85
if marks >= 40:
print("Pass")
elif marks >= 80:
print("Distinction")
- A.Pass
- B.Distinction
- C.Pass Distinction
- D.Nothing
Answer & explanation
Correct answer: Pass
The first true condition wins, and 85 >= 40 is checked first. Put the stricter check (>= 80) first.
Can you get the rest right without peeking?
Take the timed Quiz: Python Conditions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →