🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 9: Travel Destination Page

Python Challenge

Builds on these lessons

Step 1 of 3
Project

An Enum for Travel Seasons

Define class Season(Enum): with SPRING, SUMMER, FALL, WINTER members. An enum restricts a value to one of a fixed, named set of options — Season.FALL is far more self-documenting (and typo-proof) than the bare string "fall" scattered through the code.

🎯 Your Task

Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!

from enum import Enum

class Season(Enum):
    SPRING = "spring"
    SUMMER = "summer"
    FALL = "fall"
    WINTER = "winter"

best_season = Season.FALL
print(best_season)