Exercise 4 - initialize with zeros name 'initialize_with_zeros_test' is not defined

The problem is that the course staff just published a new version of this notebook and the public tests file that goes with it. There are now two tests for the initialize routine. If you are getting the message that initialize_with_zeros_test is undefined, it means you are running the old notebook, but with the new tests file.

Follow the directions on the FAQ Thread to get a new clean copy of the notebook and then carefully “copy/paste” over any of your completed work from your current copy of the notebook to the new one. Note that it’s not a good idea to try to copy the revised test cell from the new version back to your old version to save yourself work: the problem is that there is hidden “metadata” associated with that cell that you won’t be able to copy. And the cell is not editable in any case, right?

1 Like