• + 0 comments
    def weightedMean(X, W):
        # Write your code here
        multi = [a * b for a, b in zip(X, W)]
        
        print(round(sum(multi)/sum(W), 1))