Creating a NumPy array #2

Question Q6.1.3

What is the difference, if any, between the following statements:

>>> a = np.array([0,0,0])
>>> a = np.array([[0,0,0]])

Solution

To access solutions, please obtain an access code from Cambridge University Press at the Lecturer Resources page for my book (registration required) and then sign up to scipython.com providing this code.