Python tasks
Every task in one place. Pick a mode, a topic or a concept to practise.
Every task of the course, from quick understanding checks to exam-style problems.
11 tasks
- Predict the outputBasicA variable changesVariables and data types · Theory and practiceVariables and assignmentArithmetic operators
- Predict the outputElementaryAn f-stringInput and output · Theory and practiceFormatting output: sep, end, f-stringsArithmetic operators
- Fix the programElementaryThe area of a rectangleInput and output · Theory and practiceReading numbers from inputArithmetic operators
- Predict the outputBasicThree kinds of divisionOperators · Theory and practiceArithmetic operatorsInteger division and remainder: // and %
- Multiple choiceBasicWhat is computed first?Operators · Theory and practiceArithmetic operators
- Predict the outputElementaryPowers and the minus signOperators · Theory and practiceArithmetic operators
- Write a programElementaryA four-digit number backwardsOperators · Programming challengesArithmetic operatorsInteger division and remainder: // and %
- Write a programIntermediateThe time a few minutes laterOperators · Programming challengesFormatting output: sep, end, f-stringsArithmetic operatorsInteger division and remainder: // and %
- Write a programElementaryA calculatorConditions · Programming challengesArithmetic operatorsSeveral branches: elifNested conditions
- Write a programElementaryBMI calculatorGraduation exam preparation · StringsReading numbers from inputFormatting output: sep, end, f-stringsArithmetic operatorsSeveral branches: elif
- Write a programElementaryQuadratic equationGraduation exam preparation · StringsReading numbers from inputArithmetic operatorsSeveral branches: elifStandard modules: math, random