Error Code for Week 2 Assignment

Hello,

I am new to learning Python code. I am attempting the week 2 assignment, however I keep getting an error when it comes to the 6th cell. I have not altered any of the given code, I only ran the code as instructed. I run the code in order of each cell, as you are supposed to. Yet, when I get to the 6th cell, I keep getting an error that says “m is undefined”. However, m is defined as m = x.shape[0]. I cannot get past this part of the code. I have tried restarting the kernel multiple times. I have even tried running all the code in a new Jupyter notebook. I honestly cannot think of or see anything wrong with the code. Any help given, is greatly appreciated!

Hi!

Can you send me your code in a direct message so I can help?