Lesson 1/2~42 min
Theory and practice
if, elif and else - which branch runs and why.
You can solve exercises without signing in; sign in and your progress is kept.
What you practise here
Topic notes (in Slovak)
The whole topic explained step by step, with examples, worked problems, common mistakes and a summary.
~14 min read · 15 runnable examples
In the notes
Short tasks that check you understand: multiple choice, predicting the output, finding the bug, completing code.
Start the exercises- 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
Mastery and review
Once the tasks are done, check the topic with its mastery test. Review then brings it back at the right time.