Question: Q1: (Exception Handling): (30 points) Write a program called ExceptionHandling.py that demonstrates exception handling. In this program write code using your own data that generates

Q1: (Exception Handling): (30 points) Write a program called ExceptionHandling.py that demonstrates exception handling. In this program write code using your own data that generates the following errors ZeroDivisionError, ValueError, TypeError, and IndexError. Catch all the errors in the main function. If the error doesn't fall into any of these types include general Exception to handle other error types. Your data/code should generate the errors. Do not simulate or raise the errors, the way we did in the ExceptionChaining program. Generate each error in a different function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
