• + 0 comments

    For Python

    def gradingStudents(grades):
        result = []
        for a in grades:
            if a<38:
                result.append(a)
            else:
                z=int(5*round((a/5)+0.5))
                if (z-a)<3:
                    result.append(z)
                else:
                    result.append(a)
        return result