Is there a way to slice the array below without having to define the row indices i.e. not having to write `range(len(X))`?

```
X = np.arange(10*2).reshape((10,2))
L = np.random.randint(0,2,10)

Xs = X[range(len(X)),L]

```

I thought it was possible to slice with `X[:,L]` but looks like it's not.