You are viewing a single comment's thread. Return to all comments →
def gradingStudents(grades): final_grades = [] for marks in grades: if marks < 38: final_grades.append(marks) continue next_multiple = 5*((marks//5) + 1) if next_multiple - marks < 3: final_grades.append(next_multiple) else: final_grades.append(marks) return final_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 →