You are viewing a single comment's thread. Return to all comments →
And how about this?
map(lambda x: 5*(1 + x//5) if (x > 37 and ((x%5) > 2)) else x, grades)
nice one liner, but write something like that in my project and I'll fire you.
you must spare maintainer/programmer time, not whitespaces in the file.