Python tasks
Every task in one place. Pick a mode, a topic or a concept to practise.
Programming tasks with tests, from easier to demanding.
4 tasks
- Write a programBasicPalindromeGraduation exam preparation · StringsTwo branches: if – elseSlicingString methods: upper, find, replace, …
- Write a programBasicLeap yearGraduation exam preparation · Mixed tasksReading numbers from inputInteger division and remainder: // and %Logical operators: and, or, notTwo branches: if – else
- Algorithmic problemElementaryThe Collatz sequenceGraduation exam preparation · The while loopReading numbers from inputInteger division and remainder: // and %Two branches: if – elsewhile loops
- Write a programIntermediateParking feeConditions · Programming challengesFormatting output: sep, end, f-stringsInteger division and remainder: // and %Two branches: if – elseSeveral branches: elif