Skip to content

Commit

Permalink
Tweak Python dict basics tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
zstumgoren committed Oct 31, 2023
1 parent 98f2ac3 commit 9f20d3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/python_dict_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"And you can use [`items()`](https://www.w3schools.com/python/ref_dictionary_items.asp) to get a list of all the key-value pairs, where each pair is as a two-element tuple (a list-like structure that cannot be modified):\n"
"And you can use [`items()`](https://www.w3schools.com/python/ref_dictionary_items.asp) to get a list of all the key-value pairs, where each pair is a two-element tuple (a list-like structure that cannot be modified):\n"
]
},
{
Expand Down Expand Up @@ -270,8 +270,8 @@
"metadata": {},
"source": [
"Above, we see that the `candidates` key stores a list, which in turn stores a series of dictionaries with candidate information.\n",
"ts\n",
"You could continue adding data to the top-level dictionary or to nested parts of this dictionary, based on availbe data and your program's needs.\n",
"\n",
"You could continue adding data to the top-level dictionary or to nested parts of this dictionary, based on available data and your program's needs.\n",
"\n",
"A good rule of thumb, however, is to limit the amount of \"nesting\" to two or three levels. Anything beyond that can become unwieldy to manage.\n",
"\n",
Expand Down Expand Up @@ -438,7 +438,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 9f20d3d

Please sign in to comment.