Question: Write a complete syntactically correct Python program that displays a message asking the user to enter a number in the range 1 to 7. The

Write a complete syntactically correct Python program that displays a message asking the user to enter a number in the range 1 to 7. The program should then read the number from the keyboard. The program should use an if ... elif ... else ... statement to display the corresponding name of the day of the week where "Monday" is for 1, "Tuesday" for 2, "Wednesday" for 3, and so on. An error message should be displayed for numbers outside the range.

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!