a question about s[i:j] when i is negative

Fredrik Lundh fredrik at pythonware.com
Tue Oct 17 02:34:24 EDT 2006


dracula571 wrote:

> but k[-6:2] = [1,2]
> why k[-6:2] is [1,2]not [].i do follow (3),to make i positive by
> plusing len(k) twice.

twice?

</F>




More information about the Python-list mailing list