Python Exception Handling

Python Exception Handling

It is good practise to handle exceptions(unexpected data) in the code to avoid arbitrarily termination of the program. Python provides a way to handle unexpected values passed to the code, popular exception example: division by Zero.

There are four main building blocks(rather five, 1 for custom exceptions) for exception handling:
➠Each of the building block for exception handling is explained in detail