Collections.namedtuple()

  • + 0 comments
    total = int(input())
    colums = input().split()
    info_ = list(input().split() for i in range(total))
    print(sum(list(map(int, list(map(lambda x: x[colums.index("MARKS")], info_)))))/total)