After you type the extended snippets, be sure to evaluate the underrated slice () :
>>> for sl in [(1,-1),(0,20,3),(10,),(None,None,-3),(None,None,4)]:
... print range(20)[slice(*sl)]
...
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18]
[0, 3, 6, 9, 12, 15, 18]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[19, 16, 13, 10, 7, 4, 1]
[0, 4, 8, 12, 16]
This is especially useful for fixed-length formats .