Skip to content

Commit

Permalink
Merge pull request #178 from shawnrhoads/updates-to-module-01
Browse files Browse the repository at this point in the history
Update module-01-01_Intro-to-Python.ipynb
  • Loading branch information
shawnrhoads authored Sep 28, 2021
2 parents 606a331 + f10036f commit 33978b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
14 changes: 10 additions & 4 deletions docs/module-01-01_Intro-to-Python.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@
"## Classes\n",
"*(from: https://realpython.com/python3-object-oriented-programming/)*\n",
"\n",
"<blockquote>\n",
"\"The primitive data structures available in Python, like numbers, strings, and lists are designed to represent simple things like the cost of something, the name of a poem, and your favorite colors, respectively.\n",
"\n",
"What if you wanted to represent something much more complicated?\n",
Expand All @@ -858,8 +859,14 @@
"It’s important to note that a class just provides structure—it’s a blueprint for how something should be defined, but it doesn’t actually provide any real content itself. The Animal() class may specify that the name and age are necessary for defining an animal, but it will not actually state what a specific animal’s name or age is.\n",
"\n",
"It may help to think of a class as an idea for how something should be defined.\"\n",
"\n",
"![img](https://cdn-media-1.freecodecamp.org/images/M4t8zW9U71xeKSlzT2o8WO47mdzrWkNa4rWv)\n"
"</blockquote>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's create a `Cat` class! What are some attributes of a `Cat`? It should have a `name` and `age`! It can also be `tired` and `hungry`. What are some actions (or methods) that the `Cat` can do? It `feed` and `sleep` and `meow`! Should feeding and sleeping update specific attributes of the `Cat`? Now that we have our `Cat`, let's code it up!"
]
},
{
Expand All @@ -868,7 +875,6 @@
"metadata": {},
"outputs": [],
"source": [
"# let's create a cat class\n",
"class Cat:\n",
"\n",
" # Initializer / Instance Attributes\n",
Expand Down Expand Up @@ -1459,7 +1465,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions docs/module-02-01_Nonlinear-Modeling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"metadata": {},
"source": [
"## Goals of this tutorial\n",
"1. [Specifying a nonlinear models](#what-is-a-nonlinear-model)\n",
"1. [Specifying a nonlinear model](#what-is-a-nonlinear-model)\n",
"2. [Fitting data to a nonlinear model](#a-case-for-nonlinear-modeling-social-discounting)\n",
"3. [Comparing models](#model-comparison)\n",
"4. [Working with actual data](#fitting-actual-data-to-models)"
Expand Down Expand Up @@ -729,7 +729,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 33978b5

Please sign in to comment.