Jun-28-2019, 03:01 AM
Hi, i just want to ask what is the default begining point and the ending point of a slice with negative step like this
X='123456789' print(X[::-1])I try to find what exactly begining point and ending point of the slice:
>>> x='123456789' >>> x[0:len(x):-1] '' >>> x[len(x):0:-1] '98765432' (not include '1') >>> x[len(x):-1:-1] ''Can anyone just tell me what is the starting point and ending point when we slice with default like this x[::-1]