Question: Can you please sort a list using a function, and for loops. this is what I have right now but it isn't working. what am
Can you please sort a list using a function, and for loops. this is what I have right now but it isn't working. what am I doing wrong

def years_filter(staffi): for i in range(len(staff1)): for j in range(i): if staff1[j].Years/staff1[j+1]: print(staff1[j]. Idnumber, staff1[j]. Name, staff1[j]. Years,staff1[j].Job)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
