[Tutor] slicing a string

Sander Sweers sander.sweers at gmail.com
Tue Sep 7 00:22:19 CEST 2010

On 7 September 2010 00:14, lists <lists at justuber.com> wrote:
> Assuming that mytext is "test", I've found that mytext[-1:-4:-1]
> doesn't work (as I expected it to) but that mytext[::-1] does.
> While that's fine, I just wondered why mytext[-1:-4:-1] doesn't work?

How does it not "work"? What did you expect to happen? What did it do instead?


More information about the Tutor mailing list