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 outputBasicUnpacking a tupleTuples · Theory and practiceUnpacking: a, b = …
- Predict the outputBasicSwapping valuesTuples · Theory and practiceUnpacking: a, b = …
- Write a programBasicThe midpoint of a segmentTuples · Programming challengesTuples and immutabilityUnpacking: a, b = …Returning several values
- Write a programElementaryThe warmest and the coldest townTuples · Programming challengesLooping over a listTuples and immutabilityUnpacking: a, b = …
- Write a programIntermediateA rectangle around pointsTuples · Programming challengesUnpacking: a, b = …Returning several valuesFinding the minimum and maximum
- Predict the outputElementaryEuclid's algorithmAlgorithms · Theory and practicewhile loopsUnpacking: a, b = …Divisibility, primes, GCD
- Predict the outputIntermediateOne pass of bubble sortAlgorithms · Theory and practiceUnpacking: a, b = …Sorting