You are viewing a single comment's thread. Return to all comments →
from collections import namedtuple N = int(input()) StudentMarks = namedtuple('StudentMarks',input().split()) Marks_list = [] for i in range(N): a,b,c,d = input().split() S = StudentMarks(a,b,c,d) Marks_list.append(int(S.MARKS)) print(round(sum(Marks_list)/len(Marks_list),2))
Seems like cookies are disabled on this browser, please enable them to open this website
Collections.namedtuple()
You are viewing a single comment's thread. Return to all comments →