Commit 35fddbe6 authored by Marc Gouw's avatar Marc Gouw

Small changes and edits to Worksheet 3.

parent aaada960
......@@ -18,7 +18,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You now know about the most commonly-used Python data types. There are more, each with characteristics suited to a particular task or situation and, if you like, you can make your own as well. You can see the full list of built-in data structures (for Python v3) here: https://docs.python.org/3.5/library/stdtypes.html. You should also have an idea of the ways that you can repeat actions on lists and dictionaries with `for` loops, as well as take decisions based on data using `if` statements. This knowledge and these skills can be applied to some quite sophisticated programming. "
"You now know about the most commonly-used Python data types. There are more, each with characteristics suited to a particular task or situation and, if you like, you can make your own as well. You can see the full list of built-in data structures here: https://docs.python.org/3.5/library/stdtypes.html. You should also have an idea of the ways that you can repeat actions on lists and dictionaries with `for` loops, as well as take decisions based on data using `if` statements. This knowledge and these skills can be applied to some quite sophisticated programming. "
]
},
{
......@@ -39,7 +39,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Imagine, you woke up this morning and you had several ideas for things you want to do today, each can be described by a word or a short sentence. You want to write down those ideas (store them in python), which data type is in your opinion best suited to host all of that data?\n",
"Imagine, you woke up this morning and you had several ideas for things you want to do today, each can be described by a word or a short sentence. You want to write down those ideas (store them in Python), which data type is in your opinion best suited to host all of that data?\n",
"- an integer\n",
"- a string\n",
"- a list\n",
......@@ -375,8 +375,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"As mentioned before, there are a couple of problems with the output that we are getting from the code block above. Try to find a way to make the names of the groups stand out a bit more from the names of the students. \n",
"After you have achieved that, see if you can find a way to control the order in which the groups are displayed, so that they appear alphabetically - Group A, Group B, Group C."
"As mentioned before, there are a couple of problems with the output that we are getting from the code block above. Try to find a way to make the names of the groups stand out a bit more from the names of the students."
]
},
{
......@@ -443,7 +442,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"__Note__ If you're not working interactively with the IPython Notebook version of this workbook, you could be about to do a lot of typing to enter all this data yourself. To save you the trouble, the data is available as a file from [GitHub](https://github.com/tobyhodges/ITPP/blob/v2/seminarGroupMarks.txt). However, we won't cover how to read data from a file until the next worksheet. So for now, you can either skip ahead to find out how to do it (but make sure that you come back later!), read through and try to follow along without typing everything in yourself (you might find it difficult to understand exactly what's going on this way), or type/copy the whole lot. Sorry!"
"__Note__ If you're not working interactively with the IPython Notebook version of this workbook, you could be about to do a lot of typing to enter all this data yourself. To save you the trouble, the data is available as a file from [GitHub](https://git.embl.de/grp-bio-it/ITPP/blob/master/seminarGroupMarks.txt). However, we won't cover how to read data from a file until the next worksheet. So for now, you can either skip ahead to find out how to do it (but make sure that you come back later!), read through and try to follow along without typing everything in yourself (you might find it difficult to understand exactly what's going on this way), or type/copy the whole lot. Sorry!"
]
},
{
......@@ -479,7 +478,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now, we can create a top-level dictionary with three entries - one for each group. The keys are the names of the groups, and the associated values the dictionary of results for the students in the groups."
"Now, we can create a top-level dictionary with three entries — one for each group. The keys are the names of the groups, and the associated values the dictionary of results for the students in the groups."
]
},
{
......@@ -682,7 +681,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.1"
"version": "3.6.0"
}
},
"nbformat": 4,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment