• + 0 comments

    Simple one-liner in Python:

    return [i + 5 - i%5 if i > 37 and i%5 > 2 else i for i in grades]