Collections.namedtuple()

  • + 0 comments
    if __name__ == "__main__":
        n, idx = [int(input()), input().split().index("MARKS")]
        marks = [int(input().split()[idx]) for i in range(n)]
        print (f"{(sum(marks)/n):.2f}")