letter_grade(score) that returns "A" for scores 90 and above, "B" for 80-89, "C" for 70-79, "D" for 60-69, and "F" below 60. Use early returns rather than nested if/else.letter_grade(95)
A
95 >= 90.
letter_grade(55)
F
55 is below 60.
Check the highest threshold first and return immediately when it matches.
Falling through to the last line means none of the earlier thresholds matched, so it must be an F.