You are viewing a single comment's thread. Return to all comments →
def gradingStudents(grades): # Write your code here new_grade = [] for x in grades: if x < 38: new_grade.append(x) elif x >= 38: if x % 10 > 2 and x % 10 < 5: x = x // 10 x = x * 10 + 5 new_grade.append(x) elif x % 10 > 7 and x % 10 < 10: x = x // 10 x = x + 1 x = x * 10 new_grade.append(x) else : new_grade.append(x) return new_grade
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