Lesson 9 Quiz: If Statements: Making Decisions

Self-check only. Your answers stay in your browser — nothing is submitted or graded. Pick an answer for each question, then press Check my answers to see the answer key and explanations.

1. What does an `if` statement do?

2. What two things mark the code that belongs to an `if`?

3. What does `else` mean, and does it take a condition?

4. In an `if`/`elif`/`else` chain, how many blocks run?

5. Why does indentation matter in Python in a way it does not in most other languages?

← Back to Lesson 9 · Enroll free in the full course