From f5b1712de622b286ced86239cf6489635b5d6774 Mon Sep 17 00:00:00 2001 From: kovan Date: Sun, 8 Feb 2026 21:31:43 +0100 Subject: [PATCH] gh-137960: Add note about extended slicing in tutorial Co-Authored-By: Claude Opus 4.6 --- Doc/tutorial/introduction.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index deabac5253051c..e7e7a0f2b35a1d 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -333,6 +333,10 @@ slicing:: >>> word[42:] '' +Some sequences also support extended slicing with a third "step" parameter: +``s[i:j:k]``. See :ref:`Common Sequence Operations ` for +details. + Python strings cannot be changed --- they are :term:`immutable`. Therefore, assigning to an indexed position in the string results in an error::