I personally think about it like a for loop
a[start:end:step]
# for(i = start; i < end; i += step)
Also note that negative values for start and end are relative to the end of the list.
I personally think about it like a for loop
a[start:end:step]
# for(i = start; i < end; i += step)
Also note that negative values for start and end are relative to the end of the list.