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 / falseBasicA sum from input?Input and output · Theory and practiceInput with input()Reading numbers from input
- Fix the programElementaryThe area of a rectangleInput and output · Theory and practiceReading numbers from inputArithmetic operators
- Complete the codeElementaryIs the number even?Operators · Theory and practiceReading numbers from inputInteger division and remainder: // and %Comparisons: ==, !=, <, >=
- Fix the programElementaryPositive, negative or zeroConditions · Theory and practiceReading numbers from inputTwo branches: if – elseSeveral branches: elif
- Complete the codeElementaryThe sum from 1 to nLoops · Theory and practiceReading numbers from inputfor loops and range()Counting and summing in a loop