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 STDOUTnum_students,num_subjects=map(int,input().split())# print(num_students, num_subjects)ls=[]foriinrange(num_subjects):s1=list(map(float,input().split()))ls.append(s1)zipped=list(zip(*ls))# print(list(zipped))# print(zipped[0])foriinrange(num_students):avg=sum(list(zipped[i]))/num_subjectsprint(avg)
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Zipped!
You are viewing a single comment's thread. Return to all comments →