Input Format
The first line contains  and  separated by a space.
The next  lines contains the space separated marks obtained by students in a particular subject.

Output Format
Print the averages of all students on separate lines.
The averages must be correct up to  decimal place.

hackerrank zipped problem solution in python

Problem solution in python 2 programming language.

N, X = map(int, raw_input().split())
list_of_marks = []
for subject in xrange(X):
    list_of_marks += [map(float,raw_input().split())]
for student_marks in zip(*list_of_marks):    
    print sum(student_marks)/X

Problem solution in python 3 programming language.

# Enter your code here. Read input from STDIN. Print output to STDOUT
n, x = map(intinput().split()) 
sheet = []
for _ in range(x):
    sheet.append( map(floatinput().split()) ) 
for i in zip(*sheet): 
    printsum(i)/len(i) )