You are viewing a single comment's thread. Return to all comments →
I think this code is more elegant than my previous solution. I was just playing with lambda.
for g in [int(input()) for x in range(int(input()))]: print((g//5+1)*5 if g > 37 and g % 5 > 2 else g)
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 →
I think this code is more elegant than my previous solution. I was just playing with lambda.