Python tasks
Every task in one place. Pick a mode, a topic or a concept to practise.
Programming tasks with tests, from easier to demanding.
6 tasks
- Write a programBasicFunctions for a rectangleFunctions · Programming challengesDefining and calling functionsParameters and argumentsReturn values: return
- Write a programBasicCircles by clickingGraduation exam preparation · Graphics with tkinterDefining and calling functionsDrawing on a canvas (tkinter)Events: clicks and keys
- Write a programElementaryA square made of rowsFunctions · Programming challengesfor loops and range()Defining and calling functionsParameters and arguments
- 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 programElementaryColoured raysGraduation exam preparation · Graphics with tkinterSeveral branches: elifDefining and calling functionsDrawing on a canvas (tkinter)Events: clicks and keys
- Write a programIntermediateThe least common multipleFunctions · Programming challengeswhile loopsDefining and calling functionsReturn values: return