Error in Cordercise N.2.2a

I am facing an error when running the following code that I cannot fix. Please guide. Thank

The expected result is a 3-d numpy array but you’ve returned a list of arrays.

1 Like

Hi @Mohammad , welcome to the Forum!

Actually I’d recommend checking what’s being returned by np.linalg.eig. Is it just the eigenvectors? Or are you also getting something else too?

I hope this helps!

1 Like