Here are some of the examples I tried
>>> a=[1,5,9,11,2,66] >>> a[1:] [5, 9, 11, 2, 66] >>> a[:1] [1] >>> a[-1:] [66] >>> a[:-1] [1, 5, 9, 11, 2] >>> a[3] 11 >>> a[3:] [11, 2, 66] >>> a[:3] [1, 5, 9] >>> a[-3:] [11, 2, 66] >>> a[:-3] [1, 5, 9] >>> a[::1] [1, 5, 9, 11, 2, 66] >>> a[::-1] [66, 2, 11, 9, 5, 1] >>> a[1::] [5, 9, 11, 2, 66] >>> a[::-1] [66, 2, 11, 9, 5, 1] >>> a[::-2] [66, 11, 5] >>> a[2::] [9, 11, 2, 66]
I think you can understand more with these examples.