Skip to content

Commit 94a00d2

Browse files
committed
Update Dictionaries.ipynb
The exercises works fine, but I think that two elements defined with the same key "key1" were not your idea. So I changed a little the exercise. Please your feedback
1 parent 457bad6 commit 94a00d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dictionaries.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"outputs": [],
3434
"source": [
3535
"# Make a dictionary with {} and : to signify a key and a value\n",
36-
"my_dict = {'key1':'value1','key1':'value2'}"
36+
"my_dict = {'key1':'value1','key2':'value2'}"
3737
]
3838
},
3939
{
@@ -56,7 +56,7 @@
5656
],
5757
"source": [
5858
"# Call values by their key\n",
59-
"my_dict['key1']"
59+
"my_dict['key2']"
6060
]
6161
},
6262
{

0 commit comments

Comments
 (0)