Making Decisions with if, elif and else
An if statement runs its indented block only when its condition is True, elif tries the next condition when the ones above it were False, and else catches every case that's left, so a program takes the right path for each situation.
Updated

- Category
- Python
- Level
- Novice
- Tags
- elif, else (python), if Statement (python), Indentation (python), python