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.
defrounding_function(grade):rounded=gradeifgrade>=38:next_multiple_of_5=((grade//5)+1)*5ifnext_multiple_of_5-grade<3:rounded=next_multiple_of_5returnroundeddefgradingStudents(grades):# Write your code herereturnmap(rounding_function,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 isolate rounding logic and use
map()