Week 4 - Assignment 1 - Exercise 5- Name Error

Getting NameError while running exercise 5 code

Hello, Shan.

I think you missed running the previous cell! Please check it once.

I passed previous tests and then ran it. Now it is resolved as I restart the Notebook and execute all cells again.

Thank you