Question: Help please Python: Calendar Assignment Name your file cal.py and call your function with no input or output values make_calendar 1 Enter into the function
Python: Calendar Assignment Name your file cal.py and call your function with no input or output values make_calendar 1 Enter into the function a docstring with a brief explanation of make_calendar and the 2. Import time and calendar into vour 3. standard assignment header information. r function and use localtime function in time to find the current month and year Ask the user for the year of the calendar. It should default to the current year if nothing is entered. It should warn the user if a string is entered and exit the function. It should warn the user if the value is not in the range of 1 and 9999 and exit the function. If a 2-digit value is entered for the year the function should enter a while loop to get input of 0 for the year 20xx or 1 for the year xx. The function should keep asking for input until either a 0 or 1 are ente Ask the user for the month of the calendar. It should default to the current month if nothing is entered. It should warn the user if a string is entered and exit the function. It should warn the user if the value is not between 1 and 12 and exit the function. 4. 5. 6. After the input values have been checked use the TextCalendar function in calendar to int out a calendar Test Data: make Calendar >>>make calendar () Enter the year or leave blank for current year 20 Enter 0 for the year 2020 or enter 1 for the year 20: 0 Enter the month as a number or leave blank for current month: November 2020 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 The input and output statements of your function should appear exactly like this 29 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
