Error in week 3 programming assignment code

That just means you need to run the earlier cells in the notebook. Anytime you restart the notebook, you need to run everything again to recreate the “runtime state”. Try “Cell → Run All Above” and then run your test cell again.

The test routines are imported from the file by the “import” cell early in the notebook.

There is a topic about this on the DLS FAQ Thread, q.v.

1 Like