Ask Question
28 May, 19:45

In this lab, you add the input and output statements to a partially completed Python program. When completed, the user should be able to enter a year, a month, and a day. The program then determines if the date is valid. Valid years are those that are greater than 0, valid months include the values 1 through 12, and valid days include the values 1 through 31.

Instructions

Notice that variables have been declared for you.

Write input statements to retrieve a year, a month, and a day from the user.

Include the print statements to output the following:

month/day/year is a valid date.

or

month/day/year is an invalid date.

Execute the program entering the following input:

month = 5, day = 32 year = 2014

Execute the program entering the following input:

month = 9 day = 21 year = 2002

+2
Answers (1)
  1. 28 May, 22:48
    0
    Answer: Python Program

    Explanation: Year = 2020, Month = Feb, Day = 17

    Year = 2020, Month = Feb, Day = 16

    Year = 2020, Month = Jan Day = 5

    This is an example of Variables inputted for a python program for an SME calendar program for year 2020
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “In this lab, you add the input and output statements to a partially completed Python program. When completed, the user should be able to ...” in 📙 Social Studies if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers