nick34992
9/12/2017 - 2:46 PM

Python: map, input, range, zip, sum, len: Mapping and Zipping Student Grades

Python: map, input, range, zip, sum, len: Mapping and Zipping Student Grades

if __name__ == '__main__':
    N, X = map(int, input().split())
    marks = []

    for _ in range(X):
        marks.append(map(float, input().split()))

    for i in zip(*marks):
        print(sum(i)/len(i))