You are viewing a single comment's thread. Return to all comments →
You can actually forget about namedtuple and just do it old-fashined way ;) Could be shorter ~>_<~
count, marksIndex = int(input()), input().split().index("MARKS") print(sum([int(input().split()[marksIndex]) for a in range(count)])/count)
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 →
You can actually forget about namedtuple and just do it old-fashined way ;) Could be shorter ~>_<~