I'm trying to solve the following challenge
On my jupiter notebook the following function solves it:
def weightedMean(X, W):
# Write your code here
dotprd=sum([x*w for (x,w) in zip(X,W)])
However, on the site of the challenge, my function returns nothing...
> ~ no response on stdout ~
why is that?
Instead of return, I should have 'printed' the result and not 'returned' the result.