Please don’t post your code on the forum. That’s not allowed by the Code of Conduct.
If a mentor needs to see your code, we’ll contact you with instructions.
Since “distance” is going to be a list of floats - returned by np.linalg.norm() - initializing it to a vector of zero integers is not correct. Just make it a null array.
You have also deleted a line of code that you need - the one that appends items to the “distance” list.
That image doesn’t show your entire workspace. I wanted to know if you were working on Coursera Labs, or if you’re working locally or on some other platform.
The labs are intended to be used on Coursera Labs. If you want to set up a different environment, that’s on you to accomplish. You would need to install all of the assignment assets. You can get them by using the “Lab Files” tab on the notebook page, then using “Download all files”.