Organize a list of names into a dictionary keyed by each name's first letter.
Constraints
Example
>>> group_by_first_letter(["Alice", "bob", "andy", "Bob", "carol"])
{'a': ['Alice', 'andy'], 'b': ['bob', 'Bob'], 'c': ['carol']}
>>> group_by_first_letter(["Zoe", "amy", "zack"])
{'a': ['amy'], 'z': ['Zoe', 'zack']}
>>> group_by_first_letter([])
{}
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints