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.
16 tasks
- Predict the outputBasicsep and endInput and output · Theory and practiceFormatting output: sep, end, f-strings
- Predict the outputElementaryAn f-stringInput and output · Theory and practiceFormatting output: sep, end, f-stringsArithmetic operators
- Multiple choiceElementaryRoundingInput and output · Theory and practiceFormatting output: sep, end, f-strings
- Write a programBasicSum and average of three numbersInput and output · Programming challengesReading numbers from inputFormatting output: sep, end, f-strings
- Write a programBasicPrice after a discountInput and output · Programming challengesReading numbers from inputFormatting output: sep, end, f-strings
- Write a programBasicTwo numbers reversedInput and output · Programming challengesInput with input()Reading numbers from inputFormatting output: sep, end, f-strings
- Write a programIntermediateA price tableInput and output · Programming challengesReading numbers from inputFormatting output: sep, end, f-strings
- Write a programIntermediateThe time a few minutes laterOperators · Programming challengesFormatting output: sep, end, f-stringsArithmetic operatorsInteger division and remainder: // and %
- Write a programIntermediateParking feeConditions · Programming challengesFormatting output: sep, end, f-stringsInteger division and remainder: // and %Two branches: if – elseSeveral branches: elif
- Write a programBasicMultiples of a numberLoops · Programming challengesFormatting output: sep, end, f-stringsfor loops and range()
- Write a programBasicA date as a tupleTuples · Programming challengesFormatting output: sep, end, f-stringsSplitting and joining: split() and join()Tuples and immutability
- Write a programElementaryBMI calculatorGraduation exam preparation · StringsReading numbers from inputFormatting output: sep, end, f-stringsArithmetic operatorsSeveral branches: elif
- Small projectIntermediateShopping basketGraduation exam preparation · ListsFormatting output: sep, end, f-stringswhile loopsList methods: append, pop, remove, …len, sum, min, max and sorted
- Write a programElementarySki jumpersGraduation exam preparation · ListsFormatting output: sep, end, f-stringsReturn values: returnLooping over a listlen, sum, min, max and sorted
- Write a programElementaryTime in secondsGraduation exam preparation · The while loopReading numbers from inputFormatting output: sep, end, f-stringsInteger division and remainder: // and %while loops
- Write a programElementaryTest scoresGraduation exam preparation · Mixed tasksFormatting output: sep, end, f-stringswhile loopsList methods: append, pop, remove, …len, sum, min, max and sortedtry – except