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.
# Write your code here
round_grades=[]
for i in grades:
if i<38:
round_grades.append(i)
elif (i+(5-i%5))-i < 3:
x=i+(5-i%5)
round_grades.append(x)
else:
round_grades.append(i)
return round_grades
Cookie support is required to access HackerRank
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 solution:
def gradingStudents(grades):