C5W1A3 exercise2 error confused

Initially, restart the kernel.

Then check if you have done the initial part correct, i.e.

Step 2.A: select the "t"th time step vector from X.

x = X[:,t,:]

Maybe this may solve your error.