You are viewing a single comment's thread. Return to all comments →
from collections import namedtuple N = int(input()) Student = namedtuple('Student', input().split()) students = [Student(*input().split()) for _ in range(N)] marks = sum([int(s.MARKS) for s in students]) average = marks / N print(f"{average:.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 →