Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 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
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