Question: Modify your last GeoPoint program and add exception handling. Wrap the code inside a main do another? loop of your last program with a try

Modify your last GeoPoint program and add exception handling. Wrap the code inside a main do another? loop of your last program with a try block.
1. Add three except blocks.
a. The first will catch a TypeError exception and display Wrong type of input!
b. The second will catch an exception of your choice and display a message that makes sense.
c. The third will catch a generic Exception along with its object e and display the message Something went wrong: , e so that the error message e is displayed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!