Exceptions bubble up the call stack until they are handled or the program crashes. This gives you flexibility on where in your code to handle any runtime errors. In this video, I show you how an error originating in a function can be remedied either immediately in the function, or in the code that calls it. Check out the notebooks linked below for more information on Exception Handling in Python.
Embedded video, part of the following courses:
Computer Programming at Queen Mary, University of London
Jupyter notebook: https://tinyurl.com/3u76k8bf
Coding for Scientists at Queen Mary, University of London
Jupyter notebook: https://tinyurl.com/46wv5tpt
Notebooks will open on Google Colab - no installation required
On this page of the site you can watch the video online Exception propagation in Python: where should errors be handled? with a duration of hours minute second in good quality, which was uploaded by the user PatchyPython 22 October 2023, share the link with friends and acquaintances, this video has already been watched 248 times on youtube and it was liked by 6 viewers. Enjoy your viewing!