File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,12 @@ does not.
179179>
180180> Here are some visual examples of how indexing a list of lists `veg` works. First,
181181> you can reference each row on the shelf as a separate list. For example, `veg[2]`
182- > represents the bottom row, which is a list of the baskets in that row.
182+ > represents the bottom row, which is a list of the baskets in that row:
183+ >
184+ > ~~~
185+ > veg[2] = ['lettuce', 'lettuce', 'peppers', 'zucchini']
186+ > ~~~
187+ > {: .language-python}
183188>
184189> ![`veg` is now shown as a list of three rows, with `veg[0]` representing the top row of
185190> three baskets, `veg[1]` representing the second row, and `veg[2]` representing the bottom row.](../fig/04_groceries_veg0.png)
You can’t perform that action at this time.
0 commit comments