Exceptions handling in python with Examples:
What is an exception?
In this post I am trying to explain how the exceptions gotHere I am giving definition to the exception. An event which is got occurred during the execution of a program which disturbs the normal flow of our application is known as exception. When an exception occurs, it causes the current process to stop and passes it to the calling process until it is handled. If we cannot handled it properly, our application will crash. To avoid these types of problems we need to catch them and handle them properly, then our application will not crash and cannot got interrupted in middle.
Catching Exceptions in Python:
As of we know that the exceptions can be handled using a
trystatement. A code segment which can raise exception is placed inside the
tryand the code that handles exception is written in