From 457bad6874ee4908a4899369e3ca03b7e45b4454 Mon Sep 17 00:00:00 2001 From: Ricardo Gomez Date: Mon, 26 Oct 2015 15:02:57 -0600 Subject: [PATCH 1/3] Update Lists.ipynb I think you mena "they" instead "the" --- Lists.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lists.ipynb b/Lists.ipynb index b603289..0473b65 100644 --- a/Lists.ipynb +++ b/Lists.ipynb @@ -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", From 94a00d2ae6b134e6c4fb1291055323d3f0a086d1 Mon Sep 17 00:00:00 2001 From: Ricardo Gomez Date: Mon, 26 Oct 2015 15:44:08 -0600 Subject: [PATCH 2/3] Update Dictionaries.ipynb The exercises works fine, but I think that two elements defined with the same key "key1" were not your idea. So I changed a little the exercise. Please your feedback --- Dictionaries.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dictionaries.ipynb b/Dictionaries.ipynb index c775935..47fa09e 100644 --- a/Dictionaries.ipynb +++ b/Dictionaries.ipynb @@ -33,7 +33,7 @@ "outputs": [], "source": [ "# Make a dictionary with {} and : to signify a key and a value\n", - "my_dict = {'key1':'value1','key1':'value2'}" + "my_dict = {'key1':'value1','key2':'value2'}" ] }, { @@ -56,7 +56,7 @@ ], "source": [ "# Call values by their key\n", - "my_dict['key1']" + "my_dict['key2']" ] }, { From 50c666dd1930b82ee13642831c23173e27a0d44c Mon Sep 17 00:00:00 2001 From: Carol Dew Date: Thu, 21 Jan 2016 16:01:15 +0000 Subject: [PATCH 3/3] =?UTF-8?q?hanged=20iPython=20to=20Jupyter=20Fixed=20t?= =?UTF-8?q?ypo:=20=E2=80=9Ccontinnue=E2=80=9D=20to=20=E2=80=9Ccontinue?= =?UTF-8?q?=E2=80=9D=20in=20the=20last=20line=20of=20the=20Python=203=20Al?= =?UTF-8?q?ert=20Under=20=E2=80=9CString=20Indexing=E2=80=9D=20changed=20?= =?UTF-8?q?=E2=80=9CIn=20Python,=20we=20use=20brackets=20[]=20after=20an?= =?UTF-8?q?=20object=20to=20call=20it's=20index=E2=80=9D=20to=20=E2=80=9CI?= =?UTF-8?q?n=20Python,=20we=20use=20brackets=20[]=20after=20an=20object=20?= =?UTF-8?q?to=20call=20its=20index=E2=80=9D=20In=20=E2=80=9CString=20Prope?= =?UTF-8?q?rties=E2=80=9D=20changed=20=E2=80=9Celements=20within=20it=20ca?= =?UTF-8?q?n=20not=20be=20changes=20or=20replaced=E2=80=9D=20to=20?= =?UTF-8?q?=E2=80=9Celements=20within=20it=20can=20not=20be=20changed=20or?= =?UTF-8?q?=20replaced=E2=80=9D=20Last=20line:=20added=20a=20space=20after?= =?UTF-8?q?=20the=20hashes=20to=20make=20it=20show=20up=20as=20a=20heading?= =?UTF-8?q?=20in=20Markdown.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Strings.ipynb | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/Strings.ipynb b/Strings.ipynb index 9c71379..8158c9f 100644 --- a/Strings.ipynb +++ b/Strings.ipynb @@ -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." ] }, { @@ -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.**" ] }, { @@ -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 }, @@ -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:" ] }, { @@ -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": { @@ -1112,7 +1121,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", - "version": "2.7.10" + "version": "2.7.11" } }, "nbformat": 4,