• + 0 comments
    def gradingStudents(grades):
       
        li = []
        for i in grades:
            if i < 38:
                li.append(i)
            else:
                if (i+2)%5==0 :
                     li.append(i+2)
                elif (i+1)%5==0:
                    li.append(i+1)
                else:
                    li.append(i)
        return li