You are viewing a single comment's thread. Return to all comments →
2 lines w/o namedtuple
iternum, header = int(input()), input().split() print(f'{sum(int(input().split()[header.index("MARKS")]) for _ in range(iternum)) / iternum:.2f}')
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 →
2 lines w/o namedtuple
iternum, header = int(input()), input().split() print(f'{sum(int(input().split()[header.index("MARKS")]) for _ in range(iternum)) / iternum:.2f}')