Question: Question 7 - Michael is thinking about giving his employees a raise based on how long they have worked at Dunder-Mifflin. Unfortunately, he has
""" Question 7 - Michael is thinking about giving his employees a raise based on how long they have worked at Dunder-Mifflin. Unfortunately, he has confused this number with the employee's ages. Return a list that starts with his oldest employees and ends with his youngest. >>> emps = [ ("Kelly Kapoor", 32), ("Pam Beesly", 30), ("Jim Halpert", 36), \ ("Creed Bratton", 73), ("Dwight Schrute", 38) ] >>> sort_by_age_desc(emps) [('Creed Bratton', 73), ('Michael Scott', 42), ('Dwight Schrute', 38), \ ('Jim Halpert', 36), ('Pam Beesly', 30)] """
def sort_by_age_desc(list_of_employees):
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
