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.
8 tasks
- Predict the outputBasicWhat the function returnsFunctions · Theory and practiceDefining and calling functionsReturn values: return
- Find the bugBasicA forgotten callFunctions · Theory and practiceDefining and calling functionsParameters and arguments
- Write a programBasicFunctions for a rectangleFunctions · Programming challengesDefining and calling functionsParameters and argumentsReturn values: return
- Write a programElementaryA square made of rowsFunctions · Programming challengesfor loops and range()Defining and calling functionsParameters and arguments
- Write a programIntermediateThe least common multipleFunctions · Programming challengeswhile loopsDefining and calling functionsReturn values: return
- Write a programElementaryA colour-changing squareGraduation exam preparation · Graphics with tkinterDefining and calling functionsStandard modules: math, randomDrawing on a canvas (tkinter)Animation: after()
- Write a programBasicCircles by clickingGraduation exam preparation · Graphics with tkinterDefining and calling functionsDrawing on a canvas (tkinter)Events: clicks and keys
- Write a programElementaryColoured raysGraduation exam preparation · Graphics with tkinterSeveral branches: elifDefining and calling functionsDrawing on a canvas (tkinter)Events: clicks and keys