[docs] [issue18403] Minor bug in The Python Tutorial
report at bugs.python.org
Mon Jul 8 12:36:52 CEST 2013
New submission from Xue Fuqiao:
In addition to indexing, slicing is also supported. While indexing is
used to obtain individual characters, slicing allows you to obtain
>>> word[0:2] # characters from position 0 (included) to 2 (excluded)
>>> word[2:5] # characters from position 2 (included) to 4 (excluded)
I think the second comment should be "from position 2 to 5", not "to 4".
I'm a Python newbie, sorry if it's not a bug.
assignee: docs at python
nosy: docs at python, xfq
title: Minor bug in The Python Tutorial
versions: Python 3.3
Python tracker <report at bugs.python.org>
More information about the docs