Logistic Regression programming assignment exercise 1

Well, maybe you have damaged your notebook in some way. E.g. by accidentally converting the cell that creates that variable into a “markdown” cell instead of a code cell.

Maybe you should start with a clean notebook and try again. There’s a topic about that on the FAQ Thread.