[docs] [issue18403] Minor bug in The Python Tutorial
Xue Fuqiao
report at bugs.python.org
Mon Jul 8 12:36:52 CEST 2013
New submission from Xue Fuqiao:
In http://docs.python.org/3.3/tutorial/introduction.html#strings:
In addition to indexing, slicing is also supported. While indexing is
used to obtain individual characters, slicing allows you to obtain
substring:
>>> word[0:2] # characters from position 0 (included) to 2 (excluded)
'Py'
>>> word[2:5] # characters from position 2 (included) to 4 (excluded)
'tho'
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
components: Documentation
messages: 192632
nosy: docs at python, xfq
priority: normal
severity: normal
status: open
title: Minor bug in The Python Tutorial
versions: Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18403>
_______________________________________
More information about the docs
mailing list