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.
defgradingStudents(grades):# Write your code heref_grade=[]foriinrange(len(grades)):ifgrades[i]<38:f_grade.append(grades[i])else:val=grades[i]%5if(val==3)or(val==8):f_grade.append(grades[i]+2)elif(val==4)or(val==9):f_grade.append(gr
else:
f_grade.append(grades[i])
return f_grade
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 →
Simple and Beginner friendly Solution