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