• + 0 comments

    for python

    def gradingStudents(grades):
        for idx in range(len(grades)):
            if grades[idx]>=38:
                if (grades[idx]//5+1)*5-grades[idx]<3:
                    grades[idx] = (grades[idx]//5+1)*5
        return grades