• + 0 comments

    def weightedMean(X, W): # Write your code here we = [(x*w) for x,w in zip(X,W)] weight = 0 for item in we: weight += item print(round(weight/sum(W),1))