Question: 1/a.Design a program in python that asks the user to enter (in numeric form): a month; a day; and a two-digit year. The program should
1/a.Design a program in python that asks the user to enter (in numeric form): a month; a day; and a two-digit year. The program should then determine whether the month times the day equals the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic.
b. Add to (a) some additional code that will determine if the date that the user types in is indeed a valid date. Your program should not even attempt to test to see if the date is a Magic Date if the date typed in is not a valid date. If it is a valid date, print out that the date is valid, then continue checking to see if it is a Magic Date.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
