Collections.namedtuple()

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