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.
13 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
- Write a programIntermediateThree numbers from the smallestConditions · Programming challengesVariables and assignmentThe if statementNested conditions
- 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
- Small projectIntermediateBirth numberGraduation exam preparation · StringsConverting types: int(), float(), str()Integer division and remainder: // and %The if statementSlicingString methods: upper, find, replace, …
- Write a programElementaryPassword checkGraduation exam preparation · StringsLogical operators: and, or, notThe if statementLooping over a stringString methods: upper, find, replace, …
- Write a programBasicGuess the wordGraduation exam preparation · The while loopInput with input()The if statementwhile loopsString methods: upper, find, replace, …
- Write a programBasicNumbers without 3, 7 and 14Graduation exam preparation · The while loopReading numbers from inputLogical operators: and, or, notThe if statementwhile loops
- Write a programBasicCounting down to 5Graduation exam preparation · The while loopReading numbers from inputThe if statementwhile loops
- Write a programBasicOdd numbers except 17Graduation exam preparation · The while loopComparisons: ==, !=, <, >=The if statementwhile loops
- Write a programBasicTrain passengersGraduation exam preparation · Mixed tasksReading numbers from inputThe if statementwhile loopsCounting and summing in a loop
- Fix the programElementaryFix the prime testGraduation exam preparation · Mixed tasksInteger division and remainder: // and %The if statementfor loops and range()Divisibility, primes, GCD