hairetu = ["a","b","c","d","e"]
With the array
hairetu[1:3]
If you specify
It comes back with "b", "c", "d".
Also
With the array [: 2] It comes back with "a", "b", "c".
The colon can cut out an array from the index before the colon to the index after the colon.
It seems to be called a slice in Python.
Recommended Posts