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
- Multiple choiceBasicWhich exception?Exceptions · Theory and practiceKinds of exceptions: ValueError, ZeroDivisionError, …
- Multiple choiceElementaryOutside the listExceptions · Theory and practiceCreating lists and indexingKinds of exceptions: ValueError, ZeroDivisionError, …
- Complete the codeElementaryA safe conversion to a numberExceptions · Theory and practicetry – exceptKinds of exceptions: ValueError, ZeroDivisionError, …Validating input
- Predict the outputIntermediatetry, except, else, finallyGraduation exam preparation · Exceptions (try – except)Return values: returntry – exceptKinds of exceptions: ValueError, ZeroDivisionError, …