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.
7 tasks
- Predict the outputElementaryA function without returnFunctions · Theory and practiceParameters and argumentsReturn values: return
- True / falseBasicTwo parametersFunctions · Theory and practiceParameters and argumentsReturn values: return
- Find the bugBasicA forgotten callFunctions · Theory and practiceDefining and calling functionsParameters and arguments
- Complete the codeElementaryThe larger of two numbersFunctions · Theory and practiceThe if statementParameters and argumentsReturn values: return
- Write a programBasicFunctions for a rectangleFunctions · Programming challengesDefining and calling functionsParameters and argumentsReturn values: return
- Write a programElementaryThe largest of threeFunctions · Programming challengesSeveral branches: elifParameters and argumentsReturn values: return
- Write a programElementaryA square made of rowsFunctions · Programming challengesfor loops and range()Defining and calling functionsParameters and arguments