Question: 6 # Declare variables 7 valid _ date = True 8 min _ year, min _ month, max _ month, min _ day, max _

6 # Declare variables
7 valid_date = True
8 min_year, min_month, max_month, min_day, max_day =0,1,12,1,31
9q,
10
11 # This is the work of the housekeeping() method
12 def housekeeping():
13 year=int (input("Enter the year: "))
14 month=int (input("Enter the month: "))
15 day=int (input("Enter the day: "))
16
17
18 # Get the year, then the month, then the day
19
20
21 # Convert strings to integers
22 year = int (year)
23 month=int (month)
24 day=int (dax)
25
26 # This is the work of the detailloop() method
27 # check to be sure date is valid
28 # This is the work of the endofJob() method
29
30
if (year =min year):
31, valid_date= False
32 plif(month
6 # Declare variables 7 valid _ date = True 8 min

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!