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
- True / falseBasicThe result of a comparisonVariables and data types · Theory and practiceTruth values: boolComparisons: ==, !=, <, >=
- True / falseBasicBoth conditions at onceOperators · Theory and practiceComparisons: ==, !=, <, >=Logical operators: and, or, not
- Complete the codeElementaryIs the number even?Operators · Theory and practiceReading numbers from inputInteger division and remainder: // and %Comparisons: ==, !=, <, >=
- Predict the outputElementaryWhich branch runs?Conditions · Theory and practiceComparisons: ==, !=, <, >=Several branches: elif
- Find the bugBasicA comparison in a conditionConditions · Theory and practiceComparisons: ==, !=, <, >=The if statement