Given employee data from some company, the semantics of each row are: employee ID, employee name, age, and salary. 142519864,Susan Martin,39,56990 242518965,James Smith,68,27099 141582651,Mary Johnson,44,94011 011564812,John Williams,35,74098 254099823,Patricia Jones,28,42783 356187925,Robert Brown,28,35431 489456522,Linda Davis,26,25971 287321212,Michael Miller,62,131072 Write a Python function that returns a new employee list with salary updated: if an employee is younger than 40, raise his or her salary by 5%; otherwise raise the salary by 10%. Refer to lecture notes or exercises and solutions from http://www.python-course.eu/python3_lambda.php for help, if needed.
Given employee data from some company, the semantics of each row are: employee ID, employee name, age, and salary. 142519864,Susan Martin,39,56990 242518965,James Smith,68,27099 141582651,Mary Johnson,44,94011 011564812,John Williams,35,74098 254099823,Patricia Jones,28,42783 356187925,Robert Brown,28,35431 489456522,Linda Davis,26,25971 287321212,Michael Miller,62,131072 Write a Python function that returns a new employee list with salary updated: if an employee is younger than 40, raise his or her salary by 5%; otherwise raise the salary by 10%. Refer to lecture notes or exercises and solutions from http://www.python-course.eu/python3_lambda.php for help, if needed.

Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images









