Question: IN PYTHON 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
IN PYTHON

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 Sample Output $ python3 date_checker.py This program accepts a date in the form month/day/year 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/dd/yyyy) 00/20/1997 00/20/1997 is not vali Please enter a date (mm/dd/yyyy) 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
Get step-by-step solutions from verified subject matter experts
