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
Get step-by-step solutions from verified subject matter experts
