Course 1 Week 3 compute_cost

I seem to keep getting an output value that is double that of the expected output value. I’ve checked my code for indentation errors as well as errors in logic but cannot seem to determine what is causing the issue. I would greatly appreciate if anyone can help me with this problem.

Thank you.


Nevermind, my indentation error had to do with lines in the second loop that should have not been there.

1 Like