Collections.namedtuple()

  • + 0 comments
    from collections import namedtuple
    import statistics
    
    if __name__ == '__main__':
        total_students,studnet = int(input()),namedtuple('studnet', list(map(str,input().split())))
        print(f'{statistics.mean([int(studnet(*(input().split())).MARKS) for _ in range(total_students)]):.2f}')