Collections.namedtuple()

  • + 1 comment

    from collections import namedtuple as nt

    if name == 'main':

    l = int(input())
    Student = nt('Student', input())       
    print(round(sum(int(Student(*input().split()).MARKS) for i in range(l))/l, 2))