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
- True / falseBasicChanging a tupleTuples · Theory and practiceTuples and immutability
- Multiple choiceElementaryA one-element tupleTuples · Theory and practiceTuples and immutability
- Write a programBasicThe midpoint of a segmentTuples · Programming challengesTuples and immutabilityUnpacking: a, b = …Returning several values
- Write a programBasicA date as a tupleTuples · Programming challengesFormatting output: sep, end, f-stringsSplitting and joining: split() and join()Tuples and immutability
- Write a programElementaryThe warmest and the coldest townTuples · Programming challengesLooping over a listTuples and immutabilityUnpacking: a, b = …
- 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