Register - Login - Forgotten Password

Lesson 9: Using Else and Elif

What if a program needs to respond to several possible situations instead of giving only a yes-or-no response? A simple `if` statement can begin that decision, but Python also provides one connected structure for several possible outcomes. This section introduces the parts of an `if`/`elif`/`else` structure and explains how they fit together.

Lesson 9: Using Else and Elif

This lesson just one in the category Python Programming Level 1. To access this lesson you need to have a valid learner account, ask your parent to register you now.