Skip to content

Commit

Permalink
Update Elections OOP Coding Challenge assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
zstumgoren committed Mar 31, 2024
1 parent 47bfe1a commit d4b039d
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions assignments/elections_oop_code_challenge.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"source": [
"# Elections OOP Coding challenge\n",
"\n",
"> Note, this is a lightly modified version of the Election OOP Challenge from our Data Journalism Notebooks JupyterLite resource.\n",
"> Note, this is a lightly modified version of the [Election OOP Coding Challenge](https://stanfordjournalism.github.io/data-journalism-notebooks/lab?path=classes_and_oop%2Felections_oop_code_challenge.ipynb) from our Data Journalism Notebooks JupyterLite resource.\n",
"\n",
"So you now have a basic grounding in [Python classes and OOP](hidden_life_of_objects.ipynb). Let's try to burn this new info into your synapses through a coding challenge.\n",
"So you now have a basic grounding in [Python classes and OOP](https://stanfordjournalism.github.io/data-journalism-notebooks/lab?path=classes_and_oop%2Fhidden_life_of_objects.ipynb). Let's try to burn this new info into your synapses through a coding challenge.\n",
"\n",
"Below you'll find some toy election data. \n",
"\n",
Expand All @@ -29,7 +29,7 @@
"\n",
"Each row represents the number of votes a presidential candidate received in a particular county.\n",
"\n",
"The data is structured as a list of [dictionaries](../python_dict_basics.ipynb), with each containing the following data points:\n",
"The data is structured as a list of [dictionaries](https://stanfordjournalism.github.io/data-journalism-notebooks/lab?path=python_dict_basics.ipynb), with each containing the following data points:\n",
"\n",
"- Election `date` and the `office` for the race\n",
"- Candidate `name` and `party`\n",
Expand Down Expand Up @@ -207,26 +207,6 @@
"source": [
"# Here's some scratch space for you to work"
]
},
{
"cell_type": "markdown",
"id": "58244838-e1e0-4938-8e9e-e52590a3b109",
"metadata": {},
"source": [
"## Summary\n",
"\n",
"Ok, hopefully you're feeling more comfortable with classes and OOP after that bit of practice.\n",
"\n",
"Next up: unraveling the mysteries of [\"method chaining\"](method_chaining.ipynb)."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "5be35915-220f-43ce-86cd-975d972d2a6b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down

0 comments on commit d4b039d

Please sign in to comment.