You are viewing a single comment's thread. Return to all comments →
from collections import namedtuple n = int(input()) title = input().split() data = namedtuple('data', title) res = 0 for _ in range(n): fields = input().split() row = data(*fields) res += int(row.MARKS) print(f"{res/n: .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 →