subject
Social Studies, 14.02.2020 22:28 Jasten

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

ansver
Answers: 3

Another question on Social Studies

question
Social Studies, 22.06.2019 09:30
Which political reform gave people the power to put a proposed law on the ballot? referendum initiative direct primary recall
Answers: 1
question
Social Studies, 22.06.2019 12:30
Which of the following policies can the government use to encourage entrepreneurship?
Answers: 2
question
Social Studies, 22.06.2019 17:30
People of french origin make up about of the canadian population. 23 percent 50 percent 1 percent 76 percent
Answers: 1
question
Social Studies, 22.06.2019 21:30
Which quotation reflects the perspective of most of georgia legislatures in 1956 regarding the georgia state flag?
Answers: 1
You know the right answer?
In this lab, you add the input and output statements to a partially completed Python program. When c...
Questions
question
Mathematics, 14.06.2020 03:57
question
Mathematics, 14.06.2020 03:57
question
Mathematics, 14.06.2020 04:57
question
Mathematics, 14.06.2020 04:57
Questions on the website: 13722360