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.
6 tasks
- Predict the outputElementaryCounting lettersDictionaries · Theory and practiceLooping over a stringCounting occurrences
- Complete the codeElementaryHow often each word appearsDictionaries · Theory and practiceReturn values: returnCounting occurrences
- Write a programElementaryLetter countsDictionaries · Programming challengesString methods: upper, find, replace, …Looping over a dictionary: keys, values, itemsCounting occurrences
- Write a programIntermediateTotal points and rankingDictionaries · Programming challengeslen, sum, min, max and sortedTuples and immutabilityLooping over a dictionary: keys, values, itemsCounting occurrences
- Write a programIntermediateThe three most common wordsWorking with files · Programming challengesTuples and immutabilityCounting occurrencesReading from a file
- Write a programIntermediateCounting pairs with a sum - fastAlgorithmic problems · Programming challengesReturn values: returnCounting occurrencesEfficiency of a solution