Skip to content

Commit efadc09

Browse files
committed
fix grammar issues
1 parent 80261d5 commit efadc09

File tree

1 file changed

+46
-16
lines changed

1 file changed

+46
-16
lines changed

index.ipynb

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@
6868
"cell_type": "markdown",
6969
"metadata": {},
7070
"source": [
71-
"> Remember to press shift enter to run each gray block of code."
71+
"> Remember to press shift+enter to run each gray block of code. Otherwise, the variables will not be defined."
7272
]
7373
},
7474
{
7575
"cell_type": "markdown",
7676
"metadata": {},
7777
"source": [
78-
"In this lesson we can work with a list of each associated countries for each of those travel cities."
78+
"In this lesson we can work with a list of associated countries corresponding to each of the top travel cities."
7979
]
8080
},
8181
{
@@ -100,6 +100,13 @@
100100
" 'South Korea']"
101101
]
102102
},
103+
{
104+
"cell_type": "markdown",
105+
"metadata": {},
106+
"source": [
107+
"> Make sure you run the code in the cell above by pressing shift + enter."
108+
]
109+
},
103110
{
104111
"cell_type": "markdown",
105112
"metadata": {},
@@ -118,7 +125,8 @@
118125
"cell_type": "markdown",
119126
"metadata": {},
120127
"source": [
121-
"First, access the third to last element from `countries` and set it equal to the variable `italy`."
128+
"First, set the variable `italy` to be equal to the third to last element from `countries`. \n",
129+
">**Note:** If you see an **error** stating that `countries` is undefined, it means you must press shift+enter in the second gray box where `countries` variable is assigned."
122130
]
123131
},
124132
{
@@ -137,13 +145,15 @@
137145
"cell_type": "markdown",
138146
"metadata": {},
139147
"source": [
140-
"> We assign the varible `italy` equal to `None`, but you should change the word `None` to code that uses the `countries` list to assign `italy` to `'Italy'`."
148+
"> We assign the varible `italy` equal to `None`, but you should change the word `None` to code that uses the `countries` list to assign `italy` to `'Italy'`. We wrote the variable `italy` a second time, so that you can see what it equals when you run the code block. Currently, nothing is displayed below as it equals `None`, but when it's correct it will match the string which is commented out, `'Italy'`."
141149
]
142150
},
143151
{
144152
"cell_type": "code",
145153
"execution_count": 19,
146-
"metadata": {},
154+
"metadata": {
155+
"collapsed": true
156+
},
147157
"outputs": [],
148158
"source": [
149159
"italy # 'Italy'"
@@ -159,7 +169,9 @@
159169
{
160170
"cell_type": "code",
161171
"execution_count": 20,
162-
"metadata": {},
172+
"metadata": {
173+
"collapsed": true
174+
},
163175
"outputs": [],
164176
"source": [
165177
"mexico = None\n",
@@ -176,7 +188,9 @@
176188
{
177189
"cell_type": "code",
178190
"execution_count": 21,
179-
"metadata": {},
191+
"metadata": {
192+
"collapsed": true
193+
},
180194
"outputs": [],
181195
"source": [
182196
"kindof_neighbors = None\n",
@@ -200,7 +214,9 @@
200214
{
201215
"cell_type": "code",
202216
"execution_count": 24,
203-
"metadata": {},
217+
"metadata": {
218+
"collapsed": true
219+
},
204220
"outputs": [],
205221
"source": [
206222
"None # add code here"
@@ -216,7 +232,9 @@
216232
{
217233
"cell_type": "code",
218234
"execution_count": 25,
219-
"metadata": {},
235+
"metadata": {
236+
"collapsed": true
237+
},
220238
"outputs": [],
221239
"source": [
222240
"None # add code here"
@@ -232,7 +250,9 @@
232250
{
233251
"cell_type": "code",
234252
"execution_count": null,
235-
"metadata": {},
253+
"metadata": {
254+
"collapsed": true
255+
},
236256
"outputs": [],
237257
"source": [
238258
"countries \n",
@@ -250,7 +270,9 @@
250270
{
251271
"cell_type": "code",
252272
"execution_count": 30,
253-
"metadata": {},
273+
"metadata": {
274+
"collapsed": true
275+
},
254276
"outputs": [],
255277
"source": [
256278
"None # add code here"
@@ -259,7 +281,9 @@
259281
{
260282
"cell_type": "code",
261283
"execution_count": null,
262-
"metadata": {},
284+
"metadata": {
285+
"collapsed": true
286+
},
263287
"outputs": [],
264288
"source": [
265289
"countries \n",
@@ -277,7 +301,9 @@
277301
{
278302
"cell_type": "code",
279303
"execution_count": null,
280-
"metadata": {},
304+
"metadata": {
305+
"collapsed": true
306+
},
281307
"outputs": [],
282308
"source": [
283309
"countries = ['Croatia',\n",
@@ -334,7 +360,9 @@
334360
{
335361
"cell_type": "code",
336362
"execution_count": 33,
337-
"metadata": {},
363+
"metadata": {
364+
"collapsed": true
365+
},
338366
"outputs": [],
339367
"source": [
340368
"unique_countries # ['USA', 'South Korea', 'Morocco', 'Finland', 'Italy', \n",
@@ -351,7 +379,9 @@
351379
{
352380
"cell_type": "code",
353381
"execution_count": 31,
354-
"metadata": {},
382+
"metadata": {
383+
"collapsed": true
384+
},
355385
"outputs": [],
356386
"source": [
357387
"num_of_repeats = None\n",
@@ -371,7 +401,7 @@
371401
"collapsed": true
372402
},
373403
"source": [
374-
"In this section we saw how to get our data from the outside world and into Python. The purpose isn't to understand all of this code right now, but rather to see how easily we can start working with outside data. As we become better at Python, the usefulness of taking data and operating on it in code rather than a spreadsheet will become more apparent. But that doesn't mean we can't get step outside of Python sandbox now. It's not too difficult to take some data we may already have, and begin to use it with Python. In the next section, we'll use a lab to get data from excel and work with lists."
404+
"In this section we saw how to get our data from the outside world and into Python. The purpose isn't to understand all of this code right now, but rather to see how easily we can start working with outside data. As we become better at Python, the usefulness of taking data and operating on it in code rather than a spreadsheet will become more apparent. But that doesn't mean we can't get step outside of the Python sandbox now. It's not too difficult to take some data we may already have, and begin to use it with Python. In the next section, we'll use a lab to get data from excel and work with lists."
375405
]
376406
}
377407
],

0 commit comments

Comments
 (0)