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.
7 tasks
- Predict the outputBasicThree kinds of divisionOperators · Theory and practiceArithmetic operatorsInteger division and remainder: // and %
- Complete the codeElementaryIs the number even?Operators · Theory and practiceReading numbers from inputInteger division and remainder: // and %Comparisons: ==, !=, <, >=
- Predict the outputElementaryA condition inside a conditionConditions · Theory and practiceInteger division and remainder: // and %Nested conditions
- Predict the outputElementaryA list in one lineLists · Theory and practiceInteger division and remainder: // and %List comprehensions
- Complete the codeElementaryQuotient and remainder at onceTuples · Theory and practiceInteger division and remainder: // and %Return values: returnReturning several values
- Find the bugElementaryThe digit sumRecursion · Theory and practiceInteger division and remainder: // and %Recursive algorithms
- Fix the programElementaryFix the prime testGraduation exam preparation · Mixed tasksInteger division and remainder: // and %The if statementfor loops and range()Divisibility, primes, GCD