Question: Please answer this question using python correctly please. EXTRA CREDIT Exception handling and the range () function ( 0.5 points) Even if your code runs

Please answer this question using python correctly please.
 Please answer this question using python correctly please. EXTRA CREDIT Exception

EXTRA CREDIT Exception handling and the range () function ( 0.5 points) Even if your code runs correctly for Problem 3 above, it is still possible for users to enter in non-sensical date values. See Example 10, where a user could enter 00 for a month and 59 for a date and the program would still continue. This is an example of a logic error. Exception handling is the process of responding to unwanted or unexpected events in a computer program. Modify your script with additional selection statements so that only valid months and dates will be accepted, and the program will end print an error message if an invalid month or date is entered. You can assume that the user will always enter integer numbers. Below are a few sample runnings of the program. Underlined text indicates user input. Example 1 Enter birth month (MM):13 Invalid month entry. Example 2 Enter birth month (MM) : 4 Invalid month entry. Example 3 Enter birth month (MM) : 05 Enter birth day (DD) : 32 Invalid birth day entry

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 Databases Questions!