The code shows Invalid Syntax

I’m trying to execute the code but it shows Invalid syntax. The code is as follows:

dw = (np.sum(,(A-Y))))/m

please help me with this

You don’t actually show us the syntax error output, but I’m guessing it points at the first character of that line. That usually means there is something wrong with the previous line of code, e.g. something that is incomplete about it like a missing close parenthesis. Please check the matching parens on the previous line. Just click one and the editor will highlight the matching one. Or not … :nerd_face:

The “meta” lesson here is that when you have a hard time finding the error, it probably means you are looking in the wrong place. :scream_cat: