You are viewing a single comment's thread. Return to all comments →
from collections import namedtuple import statistics if __name__ == '__main__': total_students,studnet = int(input()),namedtuple('studnet', list(map(str,input().split()))) print(f'{statistics.mean([int(studnet(*(input().split())).MARKS) for _ in range(total_students)]):.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 →