Collections.namedtuple()

  • + 0 comments

    N=int(input()) from collections import namedtuple Sm=namedtuple('Sm',f"{input()}") i=[int(Sm(*input().split()).MARKS)for _ in range(N)] print(f'{sum(i)/N : .2f}')