Exercise 5 passed test but Getting an error for cost in Exercises 6

Well, if you want to actually run the notebooks locally, then you need a lot more than just the notebook itself. There is a whole tree of files you need to download. Then you need to get compatible versions of all the python packages installed. It’s a pretty big hassle. I recommend you work in the course environment and then download the notebook to save it.