Python tasks
Every task in one place. Pick a mode, a topic or a concept to practise.
Short understanding tasks: multiple choice, predicting the output, finding the bug and completing code.
5 tasks
- Multiple choiceBasicWhat belongs to a branch?Conditions · Theory and practiceThe if statement
- Find the bugBasicA comparison in a conditionConditions · Theory and practiceComparisons: ==, !=, <, >=The if statement
- Predict the outputElementaryEnding a loop earlyLoops · Theory and practiceThe if statementfor loops and range()break and continue
- Complete the codeElementaryThe larger of two numbersFunctions · Theory and practiceThe if statementParameters and argumentsReturn values: return
- Fix the programElementaryFix the prime testGraduation exam preparation · Mixed tasksInteger division and remainder: // and %The if statementfor loops and range()Divisibility, primes, GCD