You are viewing a single comment's thread. Return to all comments →
Python 3 solution:
def gradingStudents(grades: list[int]) -> list[int]: for i, grade in enumerate(grades): if grade > 37 and (mod_5 := grade % 5) > 2: grades[i] = grade + 5 - mod_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 →
Python 3 solution: