🐍 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

Eira1318

Honorary Poster
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.
 

About this Thread

  • 0
    Replies
  • 414
    Views
  • 1
    Participants
Last reply from:
Eira1318

Trending Topics

Online now

Members online
1,092
Guests online
1,048
Total visitors
2,140

Forum statistics

Threads
2,273,684
Posts
28,950,887
Members
1,234,918
Latest member
JJMMM21
Back
Top