You are viewing a single comment's thread. Return to all comments →
A lot of modulo use when it's not really needed. An alternate version:
return [max(n, (n + 2) // 5 * 5) if n >= 38 else n for n in grades]
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 →
A lot of modulo use when it's not really needed. An alternate version: