We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5134e57 commit f165dc9Copy full SHA for f165dc9
python.md
@@ -218,7 +218,7 @@ li[4] # Raises an IndexError
218
# You can look at ranges with slice syntax.
219
# The start index is included, the end index is not
220
# (It's a closed/open range for you mathy types.)
221
-li[1:3] # Return list from index 1 to 3 => [2, 4]
+li[1:3] # Return list from index 1 to 2 => [2, 4]
222
li[2:] # Return list starting from index 2 => [4, 3]
223
li[:3] # Return list from beginning until index 3 => [1, 2, 4]
224
li[::2] # Return list selecting elements with a step size of 2 => [1, 4]
0 commit comments