Ask Question
4 February, 05:50

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. 4 February, 08:05
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers