Sam is a professor at the university and likes to round each student's according to these rules:
The first line contains a single integer n , the number of students.
Each line i of the n subsequent lines contains a single integer, grades[i].
int[n] : the grades after rounding as appropriate.
def gradingStudents(grades):
# Write your code here
for i in range(len(grades)):
if(grades[i]<38):
continue
else:
up = (grades[i]//5)+1;
if((up*5) - grades[i] < 3):
grades[i] = up*5
return grades