Question: Python v3 and wing ide. Not sure what to do here. Says I must use if, for or while statements. Write a program called 'printmonth.py'that
Write a program called 'printmonth.py'that asks the user for a month name and start day and then prints the calendar for that month in a 6 row by 7 column grid. (lgnoring issues of leap years, assume February has 28 days) Sample I/O: Enter the month ('January', ..., 'December'): November Enter the start day 'Monday', ..., 'Sunday): Sunday November Mo Tu We Th Fr Sa Su 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Note (for the sake of automatic marking) that output must always form a 6 row by 7 column grid. Spaces should be used where necessary HINT: Draw on your answer to the previous question. Calculate the start value based on the day, print spaces for numbers less than one and for numbers greater than the number of days in the month
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
