Python tasks
Every task in one place. Pick a mode, a topic or a concept to practise.
Short understanding tasks: multiple choice, predicting the output, finding the bug and completing code.
4 tasks
- Predict the outputBasicUnpacking a tupleTuples · Theory and practiceUnpacking: a, b = …
- Predict the outputBasicSwapping valuesTuples · Theory and practiceUnpacking: a, b = …
- 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