Merge branch 'master' of ssh://git.xpub.nl:2501/XPUB/S13-Words-for-the-Future-notebooks

master
eunalee 4 years ago
commit dd112259f5

@ -646,7 +646,11 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# Make an empty dictionary\n", "# Make an empty dictionary\n",
"dict = {}" "d = {}\n",
"\n",
"# or\n",
"\n",
"d = dict()"
] ]
}, },
{ {
@ -655,8 +659,8 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"dict['word'] = 10 \n", "d['word'] = 10 \n",
"print(dict)" "print(d)"
] ]
}, },
{ {
@ -665,7 +669,7 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"dict.keys()" "d.keys()"
] ]
}, },
{ {

Loading…
Cancel
Save