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@python
components: Documentation
messages: 192632
nosy: docs@python, xfq
priority: normal
severity: normal
status: open
title: Minor bug in The Python Tutorial
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18403>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to