Skip to content

Commit

Permalink
fix grammar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffKatzy committed Mar 28, 2018
1 parent 80261d5 commit efadc09
Showing 1 changed file with 46 additions and 16 deletions.
62 changes: 46 additions & 16 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"> Remember to press shift enter to run each gray block of code."
"> Remember to press shift+enter to run each gray block of code. Otherwise, the variables will not be defined."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In this lesson we can work with a list of each associated countries for each of those travel cities."
"In this lesson we can work with a list of associated countries corresponding to each of the top travel cities."
]
},
{
Expand All @@ -100,6 +100,13 @@
" 'South Korea']"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"> Make sure you run the code in the cell above by pressing shift + enter."
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -118,7 +125,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"First, access the third to last element from `countries` and set it equal to the variable `italy`."
"First, set the variable `italy` to be equal to the third to last element from `countries`. \n",
">**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."
]
},
{
Expand All @@ -137,13 +145,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"> 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 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'`."
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"italy # 'Italy'"
Expand All @@ -159,7 +169,9 @@
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"mexico = None\n",
Expand All @@ -176,7 +188,9 @@
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"kindof_neighbors = None\n",
Expand All @@ -200,7 +214,9 @@
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"None # add code here"
Expand All @@ -216,7 +232,9 @@
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"None # add code here"
Expand All @@ -232,7 +250,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"countries \n",
Expand All @@ -250,7 +270,9 @@
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"None # add code here"
Expand All @@ -259,7 +281,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"countries \n",
Expand All @@ -277,7 +301,9 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"countries = ['Croatia',\n",
Expand Down Expand Up @@ -334,7 +360,9 @@
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"unique_countries # ['USA', 'South Korea', 'Morocco', 'Finland', 'Italy', \n",
Expand All @@ -351,7 +379,9 @@
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"num_of_repeats = None\n",
Expand All @@ -371,7 +401,7 @@
"collapsed": true
},
"source": [
"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."
"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."
]
}
],
Expand Down

0 comments on commit efadc09

Please sign in to comment.