Question: Please write in python. Create a calendar for any month of any year from 1753 forward. This is the first lab of a two-part sequence:

Please write in python.

Create a calendar for any month of any year from 1753 forward. This is the first lab of a two-part sequence:

This program is similar to the cal utility on the Linux system. Prompt the user for the numeric month and year to be displayed, as shown in the example below.

Enter a month number: 1 Enter year: 1753 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 29 30 31 

Input

When the program prompts the user for a month, only the values 1 through 12 are accepted. Any other input will yield a re-prompt:

Enter a month number: 13 Month must be between 1 and 12. Enter a month number: banana Month must be an integer. Enter a month number: 1

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 Databases Questions!