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.
result = []
for i in range(0, len(grades)):
grades[i] = int(grades[i])
for i in grades:
for j in range(1,101):
if(j%5 == 0 and j>i):
if(i<38):
result.append(str(i))
break
elif(j-i<3):
result.append(str(j))
break
else:
result.append(str(i))
break
return result
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 →
def gradingStudents(grades):