Collections.namedtuple()

  • + 0 comments

    from collections import namedtuple

    n=int(input()) title=input().split() student=namedtuple('student',title) total=0 for _ in range(n): data=input().split() S=student(*data) total+=int(S.MARKS) print(total/n)