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
- Find the bugElementaryText and a number togetherVariables and data types · Theory and practiceText: the str typeConverting types: int(), float(), str()
- Complete the codeBasicFrom text to a numberVariables and data types · Theory and practiceConverting types: int(), float(), str()
- Write a programElementaryText and a number in one sentenceVariables and data types · Programming challengesText: the str typeConverting types: int(), float(), str()
- Write a programElementaryAverage speedVariables and data types · Programming challengesVariables and assignmentNumbers: int and floatConverting types: int(), float(), str()
- Complete the codeElementarySumming numbers from a fileWorking with files · Theory and practiceConverting types: int(), float(), str()Reading from a fileProcessing a file line by line
- Write a programBasicDigit sumGraduation exam preparation · StringsConverting types: int(), float(), str()Counting and summing in a loopLooping over a string
- Small projectIntermediateBirth numberGraduation exam preparation · StringsConverting types: int(), float(), str()Integer division and remainder: // and %The if statementSlicingString methods: upper, find, replace, …
- Write a programElementaryA number inside a random numberGraduation exam preparation · StringsConverting types: int(), float(), str()Return values: returnString methods: upper, find, replace, …Standard modules: math, random