>>> data=range(20)

>>> data
--> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]

>>> data[0]
--> 0

>>> data[0:3]
--> [0, 1, 2]

>>> data[5:]
--> [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]

>>> data[1:15]
--> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]

>>> data[1:15:3]
--> [1, 4, 7, 10, 13]

>>> data[::2]
--> [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]

>>> data[::-2]
--> [19, 17, 15, 13, 11, 9, 7, 5, 3, 1]

>>> data[5::-2]
--> [5, 3, 1]

>>> data[-1]
--> 19
>>> data[-2]
--> 18

>>> data[-10:]
--> [10, 11, 12, 13, 14, 15, 16, 17, 18, 19]

>>> data[-8:14]
--> [12, 13]

>>> data[-8:16]
--> [12, 13, 14, 15]
