Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started