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