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