If python-like indexing is implied, the OP is probably wrong.
$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=[7,6,5,4,3,2,1]
>>> a[2:]
[5, 4, 3, 2, 1]
>>> a[:3]
[7, 6, 5]
>>> a[-1]
1
>>> a[4]
3
>>> a[-4:-2]
[4, 3]
https://docs.python.org/3/tutorial/introduction.html#lists
https://docs.python.org/3/tutorial/introduction.html#strings