You are viewing a single comment's thread. Return to all comments →
n,x=map(int,input().split()) subjects=[] for _ in range(x): marks = list(map(float, input().split())) subjects.append(marks)
for student_marks in zip(*subjects): avg=sum(student_marks)/x print(round(avg,1))
Seems like cookies are disabled on this browser, please enable them to open this website
Zipped!
You are viewing a single comment's thread. Return to all comments →
n,x=map(int,input().split()) subjects=[] for _ in range(x): marks = list(map(float, input().split())) subjects.append(marks)
for student_marks in zip(*subjects): avg=sum(student_marks)/x print(round(avg,1))