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 outputElementaryEuclid's algorithmAlgorithms · Theory and practicewhile loopsUnpacking: a, b = …Divisibility, primes, GCD
- Code comprehensionElementaryA prime testAlgorithms · Theory and practiceReturn values: returnDivisibility, primes, GCD
- Write a programIntermediateConverting to a baseAlgorithms · Programming challengesInteger division and remainder: // and %while loopsDivisibility, primes, GCD
- Algorithmic problemElementaryGreatest common divisorGraduation exam preparation · StringsInteger division and remainder: // and %while loopsDivisibility, primes, GCD
- Write a programElementaryPrime numbersGraduation exam preparation · Mixed tasksInteger division and remainder: // and %while loopsReturn values: returnDivisibility, primes, GCD
- Write a programElementaryPerfect numbersGraduation exam preparation · Mixed tasksInteger division and remainder: // and %for loops and range()Return values: returnDivisibility, primes, GCD
- Fix the programElementaryFix the prime testGraduation exam preparation · Mixed tasksInteger division and remainder: // and %The if statementfor loops and range()Divisibility, primes, GCD