Graded lab 1 - error messages in training cells

You have to run the cells in order for the functions to actually be defined. Just having the code sitting there does nothing, until you run the cell that contains the definition of the compute_cost function.

Also note that the indentation is a key part of the syntax of python: it determines the structure of the logic. You can’t just mess with the indentation to make the code “look better” to your eyes. It looks like you accidentally or purposely removed the indentation on that return statement so that it no longer belongs to the function body.

If you want to get a clean copy of the assignment to compare and repair that type of damage, the first topic on the DLS FAQ Thread shows how to do that.