python [0:-5] list code example
Example 1: lists in python
[0,'',True,5.2,False,[1,2]]
Example 2: in python [:-1]
>>> L = range(10)
>>> L[::2]
[0, 2, 4, 6, 8]
[0,'',True,5.2,False,[1,2]]
>>> L = range(10)
>>> L[::2]
[0, 2, 4, 6, 8]