You are viewing a single comment's thread. Return to all comments →
Python3 (perfect opportunity to use zip !):
def weightedMean(X, W): # Write your code here print(round(sum(a*b for a,b in zip(X,W))/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 →
Python3 (perfect opportunity to use zip !):