Collections.namedtuple()

  • + 0 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}")