New submission from Eric Fulton:
I believe the diagram showing how slices works from
https://docs.python.org/2/tutorial/introduction.html is incorrect. There
should be no 6.
word = 'Python'
word[6]
IndexError: string index out of range
Original:
+---+---+---+---+---+---+
| P | y | t
Georg Brandl added the comment:
Hi Eric,
this paragraph is about slices, where you *can* do
word[0:6]
'Python'
As such, the paragraph is correct.
--
nosy: +georg.brandl
resolution: - not a bug
status: open - closed
___
Python tracker