Lesson 1/1~12 min
Practice
`if`, `elif` and `else` - which branch runs and why.
What you practise here
1Practice
Start the exercisesShort tasks that check you understand: multiple choice, predicting the output, finding the bug, completing code.
- Predict the outputWhich branch runs?Elementary20 XP
- Multiple choiceWhat belongs to a branch?Basic10 XP
- True / falseThe else branchBasic10 XP
- Find the bugA comparison in a conditionBasic10 XP
- Predict the outputA condition inside a conditionElementary20 XP
- Fix the programPositive, negative or zeroElementary20 XP