>>> str1 = '0123456789'
>>> print(str1[:-5])
01234
>>> str1 = '0123456789'
>>> print(str1[:-5:-3])
96
>>>
>>> str1 = '0123456789'
>>> print(str1[-5:-3])
56
>>> print(str1[:-1])
012345678
>>> print(str1[::-1])
9876543210
>>> print(str1[::])
0123456789
>>> print(str1[::-3])
9630
>>> print(str1[::-])
SyntaxError: invalid syntax
>>>
print(str1[:-5:-3])