Module 3 · Making decisions in Python · Lesson 7 of 7
Quiz
Five questions on comparisons and conditions. Trace each one in your head first — then check.
1
What does this evaluate to?
5 == 5
2
Which operator means 'not equal to'?
3
What does this print?
x = 5
if x > 10:
print("big")
elif x > 3:
print("medium")
else:
print("small")4
What's the difference between = and ==?
5
What tells Python which lines belong to an if?
Your programs can now branch: ask a question and take a different path depending on the answer. Next in this module, they learn to repeat — with loops.