W2_A2_Error in propagate function

def propagate(w, b, X, Y):

# moderator edit: code removed    

return grads, cost

I am getting an error while running the code:
File “”, line 44
dw = (1/m)*(np.dot(X, (A-Y).T)
SyntaxError: invalid syntax
what can be the reason for this?

Hello, Rajat Mahajan.

Welcome to the community.

Always check the previous line if a syntax error is thrown. You may have missed a close parenthesis or a comma while calling the function.

Please do not post your code on the forum. That’s not allowed by the Code of Conduct.
I have edited your message.