[Tutor] "Philosophical" question about string slicing from end of a string
robertvstepp at gmail.com
Mon Nov 24 20:16:44 CET 2014
On Mon, Nov 24, 2014 at 1:06 PM, boB Stepp <robertvstepp at gmail.com> wrote:
> On Mon, Nov 24, 2014 at 12:57 PM, Zachary Ware
> <zachary.ware+pytut at gmail.com> wrote:
>> Have I clarified or muddied it for you? :)
> Clarified, I believe, if my following statements are correct: I did
> not consider that the behavior was symmetric with positive indices.
> So, index 0 is the "center" relative to which positive and negative
> indices create identical behaviors.
Hmm. There is a flaw in my observed "symmetry" in that str[0:3] and
str[-3:0] do not behave the same as the latter returns an empty
More information about the Tutor