Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON Write a program that determines the month of the year based on the value of a variable called month. The variable will be a
PYTHON
Write a program that determines the month of the year based on the value of a variable called month. The variable will be a number from 1 to 12 (1 is January, 2 is February, etc.). Use a print statement to write the month to the screen.
Important, you will need to declare the variable month and assign it a value in order to test your code. However, do not submit your code to be graded with the variable declaration and assignment. The auto-grader will declare the variable for you and give it a value.
Exercise 4: Months Write a program that determines the month of the year based on the value of a variable called The variable will be a number from 1 to 12 ( 1 is January, 2 is February, etc.). Use a print statement to write the month to the screen. Important, you will need to declare the variable and assign it a value in order to test your code. However, do not submit your code to be graded with the variable declaration and assignment. The auto-grader will declare the variable for you and give it a value. Click on the Try It button to test your code. If your code is not working, try to execute your code line by line with the Code Visualizer. Code Visualizer Your program should handle a variable month that has a number value between 1 and 12. Print the month of the year based on this number ( 1 is January, etc.). Remember, do not declare the variable in your code when you submit it. The auto-grader will declare the variable for youStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started