Skip to content

Commit 700ac17

Browse files
committed
add missing image
1 parent f2fbaee commit 700ac17

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lists-and-tuples.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ False
175175
```
176176

177177
If we need a new list with the same content we can use the
178-
`copy` method:
178+
`copy` method.
179179

180180
```py
181181
>>> a = [1, 2, 3]
@@ -188,6 +188,11 @@ False
188188
>>>
189189
```
190190

191+
If we draw a picture of our variables in this example it looks
192+
like this:
193+
194+
![Different lists.](images/differentlist.png)
195+
191196
If you're using Python 3.2 or older you can do `a[:]` instead
192197
of `a.copy()`. `a[:]` is a slice of the whole list, just like
193198
`a[0:]`.

0 commit comments

Comments
 (0)