In python 3.8:
salary = 92000
years = 4
if years == 1:
salary += (salary*0.02)
elif years == 2:
salary += (salary * 0.03)
elif years == 3:
salary += (salary *0.04)
elif years == 4:
salary += (salary*0.05)
elif years >= 5:
salary += (salary*0.06)
print(salary)
If we run this code, Ann's new salary will be 96600.
You may want to put it in the box on copy and then save your file.
<u>Best method to sort data:</u>
Best method to sort for data people use excel sheet. If we have 4 quarter sales data of each select man wise.
1. Open the MS Excel
2. Create blank sheet
3. Create list of salesman and quarter sales in each cells from A1….
4. Select all whole worksheet and paste it the data
5. Once data is copied, custom list is created and select advanced options dialog box, select required field and sorting is achieved.
This is simple’s method for sort the list based on the names of the first four gas in ascending order.