Skip to content

Commit d0cdc49

Browse files
authored
05-lists.md: Add alt-text to 05-lists (#803)
* Add alt-text to Episode 5 * Correct line lengths for alt-text * Correct typo & phrasing of units of pepper
1 parent 83b1453 commit d0cdc49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_episodes/05-lists.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ does not.
179179
>
180180
> Here is a visual example of how indexing a list of lists `x` works:
181181
>
182-
> [![The first element of a list.
183-
> Adapted from @hadleywickham.](../fig/indexing_lists_python.png)][hadleywickham-tweet]
182+
> [![x is represented as a pepper shaker containing several packets of pepper. [x[0]] is represented
183+
> as a pepper shaker containing a single packet of pepper. x[0] is represented as a single packet of
184+
> pepper. x[0][0] is represented as single grain of pepper. Adapted
185+
> from @hadleywickham.](../fig/indexing_lists_python.png)][hadleywickham-tweet]
184186
>
185187
> Using the previously declared list `x`, these would be the results of the
186188
> index operations shown in the image:

0 commit comments

Comments
 (0)