Global Vriable Issue: Assignment NLP-C3-W1

Hi, my assignment of Course 3 W1 of the NLP specialization submitted got error message from the grader “Grader found global variables inside graded fuctions. Please avoid using global variables in your functions”, while it passes the unit tests.

However, I do not easily notice any global variables in the functions worked on. Any suggestions?

The lab id is “dckibsmrpasg”.

Thanks!

Hi, an update: there were really global variables found. That is, in the function body I did not use the variables as specified in the def function(...): line but variables defined in other cells. Nice catch of the grader. It compelled me to go over the codes more carefully, helpful trouble shooting experience. Case closed