What's new

Python By the end of this assignment, you will be able to perform addition, deletion, and sorting on the elements of the list as well

paulghette1026

Honorary Poster
Established
Joined
Aug 27, 2017
Posts
433
Reaction
110
Points
213
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).

  1. Split the list into two sub-list namely subList1 and subList2, each containing 5 names.
  2. A new employee (assume the name “Kriti Brown”) joins, and you must add that name in subList2.

  3. Remove the second employee's name from subList1.

  4. Merge both the lists.

  5. Assume there is another list salaryList that stores salary of these employees. Give a rise of 4% to every employee and update the salaryList.

  6. 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.
 

Similar threads

Back
Top