CurriculumPython if, elif and else for KidsThe Dragon Council
Practice Challenge: Judging Every Case with if/elif/else
Judge every dragon fairly — one title each, even the tricky ones.
The Dragon Council
You know comparisons, if, elif, and else. The council challenge just needs all four together.
Remember: elif stops at the FIRST match, even when a later condition would also be true.
strength = 85
if strength >= 80:
print("Mighty")
elif strength >= 40:
print("Strong")Output
MightyOne dragon, one title. That rule matters even more now — you'll judge three dragons at once.
Check your understanding
strength = 85, using if/elif/else with 80 and 40 as the cutoffs. How many titles print?
Why: 85 >= 80 is True, so Mighty prints and the chain stops right there — elif never even checks the 40 condition. One dragon, one title, always.
What you'll practice
Gold is 200. If gold is 100 or more, say 'The door opens.' Otherwise, say 'Locked.' Use a variable, a comparison, and if/else together.
More from this topic
The Dragon Council is one lesson inside Python if, elif and else for Kids — see the full lesson order and what the whole topic covers.
View the full topic →