# High School Class Lookup — match/case (Python 3.10+)
# Python match/case is always "break-like" — no fall-through possible.
# One match, one result. The break that JS and Java need is implicit.
# The same syntax that refuses to cascade for the Twelve Days
# is exactly the right tool for a clean one-to-one mapping like this.

def get_class_name(grade_level):
    match grade_level:
        case 9:
            return "Freshman"
        case 10:
            return "Sophomore"
        case 11:
            return "Junior"
        case 12:
            return "Senior"
        case _:
            return "Unspecified"

grades = [9, 10, 11, 12, 8]
for grade in grades:
    print(f"Grade {grade} → {get_class_name(grade)}")
