Collections.namedtuple()

  • + 0 comments

    2 lines w/o namedtuple

    iternum, header = int(input()), input().split() print(f'{sum(int(input().split()[header.index("MARKS")]) for _ in range(iternum)) / iternum:.2f}')