salary = [1000, 2000, 1500, 1700, 800, 700, 650, 900, 1200, 1300]
def raise_salary(salary):
raise_amount = 0.15
new_salary = []
for i in salary:
new_salary.append(i * (1 + raise_amount))
return new_salary
new_salary = raise_salary(salary)
print(new_salary)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
salary = [1000, 2000, 1500, 1700, 800, 700, 650, 900, 1200, 1300]
def raise_salary(salary):
raise_amount = 0.15
new_salary = []
for i in salary:
new_salary.append(i * (1 + raise_amount))
return new_salary
new_salary = raise_salary(salary)
print(new_salary)