Collections.namedtuple()

  • + 0 comments
    from collections import namedtuple
    N = int(input())
    data = namedtuple('data', input())
    print(sum([int(data(*input().split()).MARKS) for _ in range(N)])/N)