Given a list of employee dicts, group their name values by department using collections.defaultdict.
Return a regular dict where the keys are department names and values are sorted lists of employee names.
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.