summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2015-10-31 18:19:38 +0800
committerAdam Bard <github@adambard.com>2015-10-31 18:19:38 +0800
commit4f1b8654a01f8c56ee2f42f70406a497e4456ff5 (patch)
tree7a21f7b0e6b7cd81ef3fcc1b459148e140c3584e
parent531ec59742f0f19fe9e08aafd1fb7c272dc86d67 (diff)
parent5bda926dcc79dea4e936cc752fd1ff00e29d71bb (diff)
Merge pull request #1927 from TheRakken/patch-1
[python] Minor correction
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index b0add668..5bc8d28a 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -238,7 +238,7 @@ li.remove(2) # Raises a ValueError as 2 is not in the list
li.insert(1, 2) # li is now [1, 2, 3, 4, 5, 6] again
# Get the index of the first item found
-li.index(2) # => 3
+li.index(2) # => 1
li.index(7) # Raises a ValueError as 7 is not in the list
# Check for existence in a list with "in"