Answered step by step
Verified Expert Solution
Link Copied!

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 10 employees name (you can assume 10 names in a list here).
Split the list into two sub-list namely subList1 and subList2, each containing 5 names.
A new employee (assume the name Kriti Brown) joins, and you must add that name in subList2.
Remove the second employee's name from subList1.
Merge both the lists.
Assume there is another list salaryList that stores salary of these employees. Give a rise of 4% to every employee and update the salaryList.
Sort the SalaryList and show top 3 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

User Defined Tensor Data Analysis

Authors: Bin Dong ,Kesheng Wu ,Suren Byna

1st Edition

3030707490, 978-3030707491

More Books

Students also viewed these Databases questions