A teacher has a dictionary of student → score and wants a dictionary of student → letter grade.
Write two functions:
letter_for(score) returns the letter for one score:| Score | Letter |
|---|---|
| 90 or more | "A" |
| 75 to 89 | "B" |
| 50 to 74 | "C" |
| below 50 | "F" |
grade_book(scores) returns a new dictionary with the same students, each mapped to their letter. An empty dictionary gives back an empty dictionary.