Question: Problem 2: Date Checker Objective loop using range( string split, formatted output flow control: if statement, maybe need to use 'else' or 'elif too. Description

 Problem 2: Date Checker Objective loop using range( string split, formatted

Problem 2: Date Checker Objective loop using range( string split, formatted output flow control: if statement, maybe need to use 'else' or 'elif too. Description Write a program using function, call it date_checker_yourlastname.py, that will loop 5 times(see example output below), and ask user to input a date string each time. This program should tell if a date is valid or not valid, and output to screen. Note each month may not have same amount of days, like: Jan has 31 days, Feb has 28 days. For simplicity, let's not worry about leap year, and assume Feb always have 28 days. Day should not be max days of that month. Month should be within 1-12. Year should be positive. # example output $ python3 date_checker.py This program accepts a date in the form month/daylyear and outputs whether or not the date is valid Please enter a date (mm/dd/yyyy): 03/31/2000 03/31/2000 is valid Please enter a date (mm/dd/yyyy): 01/32/2017 01/32/2017 is not valid Please enter a date (mm/ddlyyyy): 00/20/1997 00/20/1997 is not valid Please enter a date (mm/ddlyyyy): 05/38/2010 05/38/2010 is not valid Please enter a date (mm/dd/yyyy): 13/00/2018 13/00/2018 is not valid

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!