It's possible to slice a python list like this:
>>> list=['a', 'b']
>>> list[0:1]
['a']
However, when passing the index as a string, an error is thrown:
>>> index="0:1"
>>> list[index]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: list indices must be integers, not str
How can I specify a list index as a string? What data type is 0:1 in list[0:1], really?