Skip to content

Commit 75452f4

Browse files
committed
Add new K-V in list
1 parent 5966ab6 commit 75452f4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dictionaries.ipynb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,29 @@
244244
" print(\"Yes, 'model' is one of the keys in the thisdict dictionary\")"
245245
]
246246
},
247+
{
248+
"cell_type": "code",
249+
"execution_count": 14,
250+
"metadata": {},
251+
"outputs": [
252+
{
253+
"name": "stdout",
254+
"output_type": "stream",
255+
"text": [
256+
"{'brand': 'Ford', 'model': 'Mustang', 'year': 1964, 'color': 'red'}\n"
257+
]
258+
}
259+
],
260+
"source": [
261+
"thisdict = {\n",
262+
" \"brand\": \"Ford\",\n",
263+
" \"model\": \"Mustang\",\n",
264+
" \"year\": 1964\n",
265+
"}\n",
266+
"thisdict[\"color\"] = \"red\"\n",
267+
"print(thisdict)"
268+
]
269+
},
247270
{
248271
"cell_type": "code",
249272
"execution_count": null,

0 commit comments

Comments
 (0)