On Mon, Nov 24, 2014 at 1:33 PM, Zachary Ware <zachary.ware+py...@gmail.com> wrote: > Also note that there's no way to get the last member with a negative > second index.
Also note that, given a -1 step, there's no way to get the first member with a non-negative second index. >>> s[-1:0:-1] '987654321' It requires a negative index that's at least one less than the negative index of the first member: >>> s[-1:-len(s)-1:-1] '9876543210' If possible, leave this implicit in the slice: >>> s[::-1] '9876543210' _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor