6j: Use multi-branch selection (if, elif, else statements) to control the flow of program execution
Keyword | Definition |
---|---|
elif | selection statement which will only run the next indented block if a previous condition has not been met but a different condition is met |
else | selection statement which will only run the next indented block if a condition has not been met |
if | selection statement which will only run the next indented block if a condition has been met |
indented block | lines of code which share the same amount of spaces or tabs at the start |
program flow | the order in which lines of code are executed in a program |