Ask Question
16 April, 01:35

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

+5
Answers (1)
  1. 16 April, 01:37
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers