Skip to content

Commit 4b22cba

Browse files
com
1 parent 8a5a5b1 commit 4b22cba

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

DICT @@@.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ copy dict = {'kaja': 'maj', 'maid': 'wolf'} > > using .copy()
1414

1515
> fromkeys()
1616

17-
update a dict by another dict = {"brand": "Ford"} , {'kaja': 'maj', 'maid': 'wolf'} > a.update(b)
17+
1818

1919
a = {"brand": "Ford", 'kaja': 'maj'} b = {'kaja': 'maj', 'maid': 'wolf'} combine these dictioneries so there are no multiple elements > = {**a, **b}
2020

Python-Exercises-2-Intermediate.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,13 @@
443443
"id": "22c1796d",
444444
"metadata": {},
445445
"outputs": [],
446-
"source": []
446+
"source": [
447+
"a = {\"brand\": \"Ford\"}\n",
448+
"b = {'kaja': 'maj', 'maid': 'wolf'}\n",
449+
"\n",
450+
"# to dict a add dict b. a.update(b)\n",
451+
"\n"
452+
]
447453
}
448454
],
449455
"metadata": {

0 commit comments

Comments
 (0)