You are viewing a single comment's thread. Return to all comments →
Python 3:
def gradingStudents(grades): curved = [] for grade in grades: if grade < 38 or grade % 5 < 3: curved.append(grade) else: curved.append((grade - (grade % 5)) + 5) return curved``
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: