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.
8 tasks
- Predict the outputElementaryWrite, then readWorking with files · Theory and practiceReading from a fileWriting to a fileThe with statement
- Predict the outputElementaryAppendingWorking with files · Theory and practiceReading from a fileWriting to a file
- Find the bugElementaryAn invisible characterWorking with files · Theory and practiceReading from a fileProcessing a file line by line
- Complete the codeElementarySumming numbers from a fileWorking with files · Theory and practiceConverting types: int(), float(), str()Reading from a fileProcessing a file line by line
- Write a programBasicSearching a fileWorking with files · Programming challengesReading from a fileThe with statementProcessing a file line by line
- Write a programElementaryThe best resultWorking with files · Programming challengesFinding the minimum and maximumReading from a fileProcessing a file line by line
- Write a programElementaryNames sorted into a fileWorking with files · Programming challengeslen, sum, min, max and sortedReading from a fileWriting to a fileThe with statement
- Write a programIntermediateThe three most common wordsWorking with files · Programming challengesTuples and immutabilityCounting occurrencesReading from a file