Skip to content

Commit 8744bc2

Browse files
committed
Updated worked examples
1 parent af93991 commit 8744bc2

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

CH40208/worked_examples/week_1_dictionaries.ipynb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -403,16 +403,10 @@
403403
"- `.keys()` gives just keys\n",
404404
"- `.values()` gives just values\n",
405405
"\n",
406-
"### 4. Why Dictionaries are Useful for Chemistry\n",
407-
"- **Natural associations:** Element names → properties\n",
408-
"- **Fast lookup:** Finding iron's electron count is instant, regardless of dictionary size\n",
409-
"- **Extensible:** Easy to add more elements or properties\n",
410-
"- **Readable:** `transition_metals['iron']` is clearer than `transition_metals[5]`\n",
411-
"\n",
412-
"### 5. Nested Dictionaries\n",
406+
"### 4. Nested Dictionaries\n",
413407
"- Values can be dictionaries themselves\n",
414408
"- Access using multiple brackets: `dict[key1][key2]`\n",
415-
"- Useful for storing multiple properties per element"
409+
"- Useful, e.g., for storing multiple properties per element"
416410
]
417411
},
418412
{

0 commit comments

Comments
 (0)