summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
diff options
context:
space:
mode:
authorNami-Doc <vendethiel@hotmail.fr>2014-05-01 12:26:33 -0700
committerNami-Doc <vendethiel@hotmail.fr>2014-05-01 12:26:33 -0700
commitca0a9a8c3d38756ef884f764a2b50c827c70d2cc (patch)
tree4a5f1034df9cdbe9de336b62375e56c9fe656bf6 /python.html.markdown
parent634f1b3807dfb81f75af25cff7a77fc8bd322959 (diff)
parentfce8598a749fe885157c9582fc437f57fa111f3d (diff)
Merge pull request #599 from juanpastas/patch-1
Python: clearer add lists note.
Diffstat (limited to 'python.html.markdown')
-rw-r--r--python.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.html.markdown b/python.html.markdown
index bbc1bd92..210c9619 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -173,7 +173,7 @@ li[::-1] # => [3, 4, 2, 1]
del li[2] # li is now [1, 2, 3]
# You can add lists
-li + other_li # => [1, 2, 3, 4, 5, 6] - Note: li and other_li is left alone
+li + other_li # => [1, 2, 3, 4, 5, 6] - Note: values for li and for other_li are not modified.
# Concatenate lists with "extend()"
li.extend(other_li) # Now li is [1, 2, 3, 4, 5, 6]