You are viewing a single comment's thread. Return to all comments →
def weightedMean(X, W): product = sum(list(map(lambda n: n[1] * W[n[0]], enumerate(X)))) print(f"{product / sum(W):.1f}")
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 →