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.
5 tasks
- Predict the outputBasicA caught errorExceptions · Theory and practicetry – except
- Predict the outputElementaryRaising an exceptionExceptions · Theory and practicetry – exceptRaising an exception: raise
- True / falseBasicWhat is skipped?Exceptions · Theory and practicetry – except
- 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, …