salaries = [10, 15, 20, 342, 5432, 456433, 99999, 45643, 4893, 10000]
for i in range(10):
salaries[i] = salaries[i] * 115 / 100
print(salaries)
Результат: [11.5, 17.25, 23.0, 393.3, 6246.8, 524897.95, 114998.85, 52489.45, 5626.95, 11500.0]
Конечно, числа в массиве могут быть любые.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
salaries = [10, 15, 20, 342, 5432, 456433, 99999, 45643, 4893, 10000]
for i in range(10):
salaries[i] = salaries[i] * 115 / 100
print(salaries)
Результат: [11.5, 17.25, 23.0, 393.3, 6246.8, 524897.95, 114998.85, 52489.45, 5626.95, 11500.0]
Конечно, числа в массиве могут быть любые.