You are viewing a single comment's thread. Return to all comments →
i ran it on my jupyer notebook. i cant understand the output. input>>>>>>>>>>>>> grades = [int(input()) for __ in range(int(input()))]
[print(g+5 - g%5 if g%5 > 2 and g>37 else g) for g in grades]
output>>>>>> 5 45 66 23 56 98 45 66 23 56 100 [None, None, None, None, None]
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 ran it on my jupyer notebook. i cant understand the output. input>>>>>>>>>>>>> grades = [int(input()) for __ in range(int(input()))]
[print(g+5 - g%5 if g%5 > 2 and g>37 else g) for g in grades]
output>>>>>> 5 45 66 23 56 98 45 66 23 56 100 [None, None, None, None, None]