C2_W1_assignment Please help

I have tried to fix my codes but I don’t understand what the issue is. PLEASE help I’m stuck.

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)

Try reading the error codes might help.

I did but now in exercise 1 its saying There was a problem grading your submission. Details:
sub got incompatible shapes for broadcasting: (5,), (50,). do you know why

Note that the template code has this:

The function should have three arguments.

Are you using the current version of the notebook?