summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMarcel Ribeiro-Dantas <ribeirodantasdm@gmail.com>2023-09-20 10:22:43 -0300
committerGitHub <noreply@github.com>2023-09-20 10:22:43 -0300
commit143d61db13d4646e15cb36d929e7bdae63bbf6f0 (patch)
tree7d15febcfc69b0664f365a5c1991ce75da2ca217
parentec40f8d83941430a125b28f37db42ab9ae7bbc80 (diff)
parent38bf258ad82363e8a8eb06064b223aa2354b0186 (diff)
Merge pull request #4756 from smith558/patch-9
[python/en] Fix incorrect expression description
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 326ddb95..c9eac8ae 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -226,7 +226,7 @@ li[4] # Raises an IndexError
li[1:3] # Return list from index 1 to 3 => [2, 4]
li[2:] # Return list starting from index 2 => [4, 3]
li[:3] # Return list from beginning until index 3 => [1, 2, 4]
-li[::2] # Return list selecting every second entry => [1, 4]
+li[::2] # Return list selecting elements with a step size of 2 => [1, 4]
li[::-1] # Return list in reverse order => [3, 4, 2, 1]
# Use any combination of these to make advanced slices
# li[start:end:step]