Skip to content

Commit 7a03fd4

Browse files
committed
Copy
1 parent 75452f4 commit 7a03fd4

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
@@ -267,6 +267,29 @@
267267
"print(thisdict)"
268268
]
269269
},
270+
{
271+
"cell_type": "code",
272+
"execution_count": 15,
273+
"metadata": {},
274+
"outputs": [
275+
{
276+
"name": "stdout",
277+
"output_type": "stream",
278+
"text": [
279+
"{'brand': 'Ford', 'model': 'Mustang', 'year': 1964}\n"
280+
]
281+
}
282+
],
283+
"source": [
284+
"thisdict = {\n",
285+
" \"brand\": \"Ford\",\n",
286+
" \"model\": \"Mustang\",\n",
287+
" \"year\": 1964\n",
288+
"}\n",
289+
"mydict = thisdict.copy()\n",
290+
"print(mydict)"
291+
]
292+
},
270293
{
271294
"cell_type": "code",
272295
"execution_count": null,

0 commit comments

Comments
 (0)