Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You work for a company that manages employee records as follows. ( Al ce , HR , 2 8 , 5
You work for a company that manages employee records as follows.AlceHRCharlie "Marketing", Eve "Engineering",
Each employee is represented by a tuple containing their name string department string age integer and
salary float
Your task is to write Python code to sort the employee records in ascending order of age. After sorting, create a
new list called youngemployees containing the names and departments of employees younger than years
old, discarding their ages and salaries. Finally, print the youngemployees list. The expected output may look
like:
Charlie 'Marketing'AliceHREve 'Engineering'
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started