if/elif/else Quiz
Check what you learned in the If / Elif / Else lesson. Every question explains the answer, so even a wrong answer teaches you something.
- 12 questions, picked from a pool of 105
- About 9 minutes
- Instant feedback
What this quiz covers
- The if statement (opens in a new tab)
- Indentation matters (opens in a new tab)
- else: the other path (opens in a new tab)
- elif: more than two choices (opens in a new tab)
- Combining conditions (opens in a new tab)
- Using truthiness (opens in a new tab)
- Nested if statements (opens in a new tab)
- The conditional expression (opens in a new tab)
- Common mistakes (opens in a new tab)
Know something worth teaching? Write your own tutorial with runnable examples and share it.
Want to test your friends or students? Build your own Python quiz with the same question types and share it with a link.
Create a quiz