We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2fbaee commit 700ac17Copy full SHA for 700ac17
1 file changed
lists-and-tuples.md
@@ -175,7 +175,7 @@ False
175
```
176
177
If we need a new list with the same content we can use the
178
-`copy` method:
+`copy` method.
179
180
```py
181
>>> a = [1, 2, 3]
@@ -188,6 +188,11 @@ False
188
>>>
189
190
191
+If we draw a picture of our variables in this example it looks
192
+like this:
193
+
194
+
195
196
If you're using Python 3.2 or older you can do `a[:]` instead
197
of `a.copy()`. `a[:]` is a slice of the whole list, just like
198
`a[0:]`.
0 commit comments