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.
21 tasks
- Multiple choiceBasicrange with a stepLoops · Theory and practicefor loops and range()
- Predict the outputElementaryEnding a loop earlyLoops · Theory and practiceThe if statementfor loops and range()break and continue
- True / falseBasicHow many times?Loops · Theory and practicefor loops and range()
- Predict the outputElementaryA loop inside a loopLoops · Theory and practicefor loops and range()Nested loops
- Complete the codeElementaryThe sum from 1 to nLoops · Theory and practiceReading numbers from inputfor loops and range()Counting and summing in a loop
- Write a programBasicMultiples of a numberLoops · Programming challengesFormatting output: sep, end, f-stringsfor loops and range()
- Write a programBasicAn upside-down pyramidLoops · Programming challengesfor loops and range()
- Write a programElementaryA square made of rowsFunctions · Programming challengesfor loops and range()Defining and calling functionsParameters and arguments
- Find the bugElementaryA missing elementLists · Theory and practicefor loops and range()Looping over a list
- Write a programElementaryA list backwards without reverseLists · Programming challengesfor loops and range()Creating lists and indexingLooping over a list
- Write a programElementaryMissing numbersSets · Programming challengesfor loops and range()Sets and unique itemsUnion, intersection, difference
- Predict the outputBasicA day-by-day simulationAlgorithmic problems · Theory and practicefor loops and range()Simulation
- Write a programBasicHalf pyramidGraduation exam preparation · StringsInput with input()for loops and range()Slicing
- Write a programElementaryThe Fibonacci sequenceGraduation exam preparation · StringsVariables and assignmentReading numbers from inputfor loops and range()
- Write a programBasicFibonacci into a listGraduation exam preparation · Listsfor loops and range()Creating lists and indexingList methods: append, pop, remove, …
- Write a programElementaryPerfect numbersGraduation exam preparation · Mixed tasksInteger division and remainder: // and %for loops and range()Return values: returnDivisibility, primes, GCD
- Write a programBasicCoin tossGraduation exam preparation · Mixed tasksfor loops and range()Counting and summing in a loopReturn values: returnStandard modules: math, random
- Fix the programElementaryFix the prime testGraduation exam preparation · Mixed tasksInteger division and remainder: // and %The if statementfor loops and range()Divisibility, primes, GCD
- Small projectElementaryA tuft of grassGraduation exam preparation · Graphics with tkinterfor loops and range()Standard modules: math, randomDrawing on a canvas (tkinter)Events: clicks and keys
- Write a programElementaryA text windmillGraduation exam preparation · Graphics with tkinterInput with input()for loops and range()Drawing on a canvas (tkinter)
- Small projectElementaryA row of squaresGraduation exam preparation · Graphics with tkinterfor loops and range()Drawing on a canvas (tkinter)Animation: after()