Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We used np. ndarray. all() to check if two NumPy arrays are equivalent. 


The first test passed and raised a ValueError exception because there is no possibility to reshape the 4 elements list into 2x3 array. The second test also passed - a list of 4 elements can be reshaped into 2x2 array. 

...