We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
def gradingStudents(grades):
# Write your code here
result = []
for grade in grades:
rounding_num= ((grade // 5)+1)*5
if grade<38 :
result.append(grade)
elif rounding_num-grade<3:
result.append(rounding_num)
else:
result.append(grade)
return result
Grading Students
You are viewing a single comment's thread. Return to all comments →
Good solution! Congratulation !