From v, return the values at positions 2, 0 and 3, in that order
NumPy · from Fancy indexing
a[[0, 2]]a[rows, cols]np.ix_np.takenp.add.atalways copiesPutting the kettle on…
Starting up…
Exercise 1
From v, return the values at positions 2, 0 and 3, in that order.
your answer
stuck? the lesson behind it
Fancy indexing
Indexing with a list of positions — and why two lists zip instead of crossing.