5. Exception Handling

As humans while writing code we are prone to make mistakes/errors, causing programs to crash or behave incorrectly. The process of finding and fixing the errors/bugs is called debugging. Programmers usually spend most of their time debugging and it becomes very essential to spot their types and fix them accordingly. As programs get larger in size, errors might not be that straightforward to fix/spot and it might take some time to debug a program. In Python errors are called Exceptions, it is a Pythonic way of saying something exceptional has occurred and it needs to be handled. Let’s begin with the types of Exceptions.