• + 19 comments

    A simple and clean solution with only one print statement and minimal conditionals.

    if grade >= 38:
        if grade % 5 == 3:
            grade += 2
        elif grade % 5 == 4:
            grade += 1
    print(grade)