Question: Write a complete and syntactically correct Python program to solve the following problem: Input a date in numeric format from the user e.g. mm/dd/yy. Examine

Write a complete and syntactically correct Python program to solve the following problem:

Input a date in numeric format from the user e.g. mm/dd/yy.

Examine the month entered by the user, if it is larger than 12 or smaller than 1, issue an error message and ask for input again.

Perform similar validation tests for the date and year. Year must be 2015. (Any other year is invalid). In addition, the year must only be two digits long..

Once all input has been validated, output the string in long date format. Thus a string that was input as 06/01/15, will be output as June 1, 2015..

Use the IDLE programming environment.

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!