Sort by

recency

|

536 Discussions

|

  • + 0 comments

    from statistics import mean N,X=map(int,input().split()) records=[list(map(float,input().split())) for _ in range(X)] avgmarks=[mean(i) for i in list(zip(*records))] print(*avgmarks,sep='\n')

  • + 0 comments
    if __name__ == '__main__':
        n, x = map(int, input().split())
        grades_list = [tuple(map(float, input().split())) for subjects in range(x)]
    
        zip_students = zip(*grades_list)
        
        zip_list = list(zip_students)
        
        avg_list = [ sum(student)/len(student) for student in zip_list]
        
        print(*map(lambda x: f'{x:.1f}', avg_list), sep='\n')
    
  • + 0 comments
    n, x = map(int,input().split(" "))
    l = []
    for _ in range(x):
        l.append(list(map(float,input().split(" "))))
    for n in zip(*l):
        print(f"{(sum(n)/len(n)):.1f}")
    
  • + 0 comments

    n, x = map(int, input().split()) l = [map(float, input().split()) for i in range(x)] val = zip(*l) [print(sum(i)/x) for i in val]

  • + 0 comments
    n = list(map(int, input().split()))
    a = []
    for i in range(n[1]):
         arr = list(map(float, input().split()))
         a.append(arr)
    zipped = zip(*a)
    for group in zipped:
        print(sum(group)/len(group))