You are viewing a single comment's thread. Return to all comments →
My solution has one conditional less, but your one is very readable
def gradingStudents(grades): for i in range(len(grades)): if grades[i]<38: pass elif grades[i]%5 > 2: grades[i] += 5-grades[i]%5 return grades
Seems like cookies are disabled on this browser, please enable them to open this website
Grading Students
You are viewing a single comment's thread. Return to all comments →
My solution has one conditional less, but your one is very readable