• + 0 comments

    Also python

    def gradingStudents(grades):
        grades = [grade if (grade < 38 or (grade//5 + 1)*5 - grade >=3) else (grade//5 + 1)*5  for grade in grades]
        return grades