We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# Enter your code here. Read input from STDIN. Print output to STDOUTn_students,x_subjects=map(int,input().split())lista=list()students_list=[x+1forxinrange(n_students)]forjinrange(x_subjects):line=list(map(float,input().split()))lista.append(line)forstudentinzip(*lista):print(round(sum(student)/x_subjects,1))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
number_of_grades, number_of_students = map(int, (input().split()))
for marks in tuple(zip(*list(tuple(map(float, input().split())) for _ in range(number_of_students)))): print(sum(marks) / len(marks))
For Python3 Platform