Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierian-Data committed Jan 28, 2016
2 parents 1a070d7 + b6a95ef commit e2013b7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dictionaries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
],
"source": [
"# Call values by their key\n",
"my_dict['key1']"
"my_dict['key2']"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion Lists.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"#Lists\n",
"\n",
"Earlier when discussing strings we introduced the concept of a *sequence* in Python. Lists can be thought of the most general version of a *sequence* in Python. Unlike strings, the are mutable, meaning the elements inside a list can be changed!\n",
"Earlier when discussing strings we introduced the concept of a *sequence* in Python. Lists can be thought of the most general version of a *sequence* in Python. Unlike strings, they are mutable, meaning the elements inside a list can be changed!\n",
"\n",
"In this section we will learn about:\n",
" \n",
Expand Down
23 changes: 16 additions & 7 deletions Strings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"source": [
"## Printing a String\n",
"\n",
"Using iPython notebook with just a string in a cell will automatically output strings, but the correct way to display strings in your output is by using a print function."
"Using Jupyter notebook with just a string in a cell will automatically output strings, but the correct way to display strings in your output is by using a print function."
]
},
{
Expand Down Expand Up @@ -270,7 +270,7 @@
"\n",
"If you want to use this functionalty in Python2, you can import form the __future__ module. \n",
"\n",
"**A word of caution, after importing this you won't be able to choose the print statement method anymore. So pick whichever one you prefer depending on your Python installation and continnue on with it.**"
"**A word of caution, after importing this you won't be able to choose the print statement method anymore. So pick whichever one you prefer depending on your Python installation and continue on with it.**"
]
},
{
Expand Down Expand Up @@ -338,12 +338,12 @@
"## String Indexing\n",
"We know strings are a sequence, which means Python can use indexes to call parts of the sequence. Let's learn how this works.\n",
"\n",
"In Python, we use brackets [] after an object to call it's index. We should also note that indexing starts at 0 for Python. Let's create a new object called s and the walk through a few examples of indexing."
"In Python, we use brackets [] after an object to call its index. We should also note that indexing starts at 0 for Python. Let's create a new object called s and the walk through a few examples of indexing."
]
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 1,
"metadata": {
"collapsed": true
},
Expand Down Expand Up @@ -714,7 +714,7 @@
},
"source": [
"## String Properties\n",
"Its important to note that strings have an important property known as immutability. This means that once a string is created, the elements within it can not be changes or replaced. For example:"
"Its important to note that strings have an important property known as immutability. This means that once a string is created, the elements within it can not be changed or replaced. For example:"
]
},
{
Expand Down Expand Up @@ -1092,8 +1092,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"##Next up: Lists!"
"## Next up: Lists!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -1112,7 +1121,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10"
"version": "2.7.11"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e2013b7

Please sign in to comment.