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 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