You are viewing a single comment's thread. Return to all comments →
N = map(int,input().split()) X = list(map(int, input().strip().split(' '))) W = list(map(int, input().strip().split(' '))) sum_X = sum([a*b for a,b in zip(X,W)]) print(round((sum_X/sum(W)),1))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 0: Weighted Mean
You are viewing a single comment's thread. Return to all comments →