konstantin.selivanov at gmail.com
Tue Jul 22 07:49:37 CEST 2008
On Jul 22, 9:18 am, alex23 <wuwe... at gmail.com> wrote:
> On Jul 22, 3:10 pm, konstantin <konstantin.seliva... at gmail.com> wrote:
> > some_string[i:j:k]
> > What does it mean?
> i = start position, j = end position, k = step size
> >>> s = "ABABABABABABAB"
> >>> s[0:6:2]
> >>> s = "ABCABCABCABCABC"
> >>> s[0:6:3]
> Hope this helps.
> - alex23
It seems that negative step leads in reverse direction.
But logic isn't completely clear for me.
>>> s = '123456789'
though I expected something like '8642'
What did i missed?
More information about the Python-list