Skip to content

Commit 0ce6f4b

Browse files
authored
reference value in dict by key and not position
Refers to #335 - `dict` values should never be referred to by position, but by key.
1 parent 53dfee5 commit 0ce6f4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_episodes/01-short-introduction-to-Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ for key in rev.keys():
450450
> ## Changing dictionaries
451451
>
452452
> 1. First, print the value of the `rev` dictionary to the screen.
453-
> 2. Reassign the second value (in the *key value pair*) so that it no longer
453+
> 2. Reassign the value that corresponds to the key "2" so that it no longer
454454
> reads "two" but instead "apple-sauce".
455455
> 3. Print the value of `rev` to the screen again to see if the value has changed.
456456
>

0 commit comments

Comments
 (0)