You are viewing a single comment's thread. Return to all comments →
def gradingStudents(grades, min_grade=38, rounding=5, round_required=3): for i, grade in enumerate(grades): if grade < min_grade: continue diff = grade % rounding if diff >= round_required: grades[i] = grade + rounding - diff return grades
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