On Jul 22, 3:10 pm, konstantin <[EMAIL PROTECTED]> 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]
'AAA'
>>> s = "ABCABCABCABCABC"
>>> s[0:6:3]
'AA'

Hope this helps.

- alex23
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to