Collections.namedtuple()

  • + 0 comments

    from collections import namedtuple import statistics

    n,student=int(input()),namedtuple("student",input().split())

    print(statistics.mean(int(student(*(input().split())).MARKS) for _ in range(n)))