You are viewing a single comment's thread. Return to all comments →
from collections import namedtuple as nt if name == 'main': l = int(input()) Student = nt('Student', input()) print(round(sum(int(Student(*input().split()).MARKS) for i in range(l))/l, 2))
from collections import namedtuple as nt
if name == 'main':
l = int(input()) Student = nt('Student', input()) print(round(sum(int(Student(*input().split()).MARKS) for i in range(l))/l, 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 →