Skip to content

Commit 9aa623b

Browse files
committed
minor edits
1 parent 7955b59 commit 9aa623b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lessons/1_Jupyter_and_Python.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"source": [
179179
"This is cool, but how can we save the result of this calculation?\n",
180180
"\n",
181-
"In Python, we can assign a value to a variable, using the equals sign `=`. For example, we can track the multiplication of some country's population and GDP per capita in a variable `gdpTotal`.\n"
181+
"In Python, we can assign a value to a variable, using the equals sign `=`. For example, we can track the above calculation in a variable called `a`."
182182
]
183183
},
184184
{
@@ -187,17 +187,17 @@
187187
"metadata": {},
188188
"outputs": [],
189189
"source": [
190-
"gdpTotal = 60000 * 778\n",
190+
"a = 10 + 4 * 2\n",
191191
"\n",
192192
"# Printing our new variable\n",
193-
"print(gdpTotal)"
193+
"print(a)"
194194
]
195195
},
196196
{
197197
"cell_type": "markdown",
198198
"metadata": {},
199199
"source": [
200-
"From now on, whenever you refer to `gdpTotal`, Python will substitute the value we assigned to it. "
200+
"From now on, whenever you refer to `a`, Python will substitute the value we assigned to it. "
201201
]
202202
},
203203
{
@@ -213,7 +213,7 @@
213213
"metadata": {},
214214
"outputs": [],
215215
"source": [
216-
"gdpTotal"
216+
"a"
217217
]
218218
},
219219
{
@@ -222,7 +222,7 @@
222222
"source": [
223223
"## 🥊 Challenge 2: Executing Cells Multiple Times\n",
224224
"\n",
225-
"Try using **Shift + Enter** to run the following cell three times. What is the output?"
225+
"Try using **Shift + Enter** to run the following cell three times. What is the output? Can you explain what is happening?"
226226
]
227227
},
228228
{

0 commit comments

Comments
 (0)