On 8 July 2017 at 13:03, Jaime Fernández del Río <[email protected]>
wrote:

> The last index is exclusive:
> [a:b] means a <= index < b.
>

And the consequence is that the length of your array is b - a, so [:3]
gives you the first 3 values.
_______________________________________________
NumPy-Discussion mailing list
[email protected]
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to