Level 02: selections 0 of 9 activities solved
  1. 1. Ride height Not yet solved
  2. 2. Largest number Not yet solved
  3. 3. Seasons Not yet solved
  4. 4. States of water Not yet solved
  5. 5. HTTP status codes Not yet solved
  6. 6. Currency converter Not yet solved
  7. 7. Nitrate Not yet solved
  8. 8. Exam grade Not yet solved
  9. 9. Periodic table Not yet solved
Next series Level 03: condition controlled repetitions
Level 02: selections

3. Seasons

Sign in to hand in your solution and get feedback.

# Seasons program # ------------------------- # Subprograms # ------------------------- def seasons(month): match month: case "December" | "January" | "February": return "Winter" case "March" | "April" | "May": return "Spring" case "June" | "July" | "August": return "Summer" case "September" | "October" | "November": return "Autumn" case _: return "Error" # ------------------------- # Main program # ------------------------- month = input("Enter the month: ") season = seasons(month) print("Month", month, "is in the", season)