a[::-1] in python means code example Example: in python [:-1] >>> L = range(10) >>> L[::2] [0, 2, 4, 6, 8]