You are viewing a single comment's thread. Return to all comments →
Python 3:
def round(mark): if mark <38: return mark elif mark>=38: if ((int(mark/5)+1)*5) - mark < 3: return ((int(mark/5)+1)*5) else: return mark n = int(input()) array = [] for i in range(n): marks = int(input()) array.append(marks) for i in range(len(array)): print(round(array[i]))
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 →
Python 3: