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