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

Can you please sort a list using a function, and for loops.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!