Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d95bb3f

Browse files
committed
#18403: merge with 3.3.
2 parents bf5af5d + 93dd693 commit d95bb3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/tutorial/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ to obtain individual characters, *slicing* allows you to obtain substring::
262262

263263
>>> word[0:2] # characters from position 0 (included) to 2 (excluded)
264264
'Py'
265-
>>> word[2:5] # characters from position 2 (included) to 4 (excluded)
265+
>>> word[2:5] # characters from position 2 (included) to 5 (excluded)
266266
'tho'
267267

268268
Note how the start is always included, and the end always excluded. This

0 commit comments

Comments
 (0)