Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Term classifier Write Python code that reads months and prints a list of their equivalent term names according to the table below. Months | Term
Term classifier
Write Python code that reads months and prints a list of their equivalent term names according to the table below.
Months | Term ----------------- 01-04 | Winter 05-06 | Spring 07-08 | Summer 09-12 | Fall
Your program should:
- Reads int numbers 1 to 12 from the user and save them into a list months, until the user inputs 0.
- If they entered a value that is invalid, ask the user to input it again.
- Classify each month in months into one of the terms saving them into the list termList.
- Display the of months and their respective terms following the template:
month: term month: term month: term
Step 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