• + 0 comments

    print(f"{sum([x*w for x,w in zip(X,W)]) / sum(W):.1f}")