Python Data Processing Question

Asked at Microsoft · Coding & Leetcode-style Questions · Difficulty: Easy

Please write a Python function that takes a list of dictionaries as input. Each dictionary contains information about an employee, such as name, age, and department. The function should return the average age of employees in each department. Provide the function signature, complete solution, test cases, and data scale explanation.

Loading the problem…