Question: ( a ) . Consider that you are working as Data Analyst in an organization. The HR department needs you to carry out following operation
a Consider that you are working as Data Analyst in an organization. The HR department needs you to carry out following operation on existing list of employees name you can assume names in a list here
Split the list into two sublist namely subList and subList each containing names.
A new employee assume the name Kriti Brown joins, and you must add that name in subList
Remove the second employee's name from subList
Merge both the lists.
Assume there is another list salaryList that stores salary of these employees. Give a rise of to every employee and update the salaryList.
Sort the SalaryList and show top salaries.
Write the Python code and output for the same.
b Design a program such that it converts a sentence into wordlist. Reverse the wordlist then. Write the code and output for the same. Note: The code and its output must be explained technically. The explanation can be provided before or after the code, or in the form of comments within the code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
