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:

  1. 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.
  2. Classify each month in months into one of the terms saving them into the list termList.
  3. 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

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!