Skip to content

Commit 349a03f

Browse files
proof reading: self study imports
1 parent 06e11f0 commit 349a03f

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

individual_modules/introduction_to_python/functions.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@
688688
"\n",
689689
"Now that we have written a few functions, we should add some docstrings. A docstring is a small explanation of the expected functionality of the function, as well as descriptions of the function parameters, and any returns. There are lots of styles of docstrings. See here for the Google style.\n",
690690
"\n",
691-
"It is good habit to write a docstring for every single function you create. Even if noone reads your code, you will forget why you wrote this function in a years time. Dont be that person with no docstrings!\n",
691+
"It is good habit to write a docstring for every single function you create. Even if no one reads your code, you will forget why you wrote this function in a year's time. Dont be that person with no docstrings!\n",
692692
"Add a Google-style docstring to your rescale function. Include the expected types of the function parameters."
693693
]
694694
},
@@ -737,7 +737,7 @@
737737
},
738738
"source": [
739739
"## Defining Defaults\n",
740-
"Rewrite the `rescale` function so that it scales data to lie between `0.0` and `1.0` by default,but will allow the caller to specify lower and upper bounds if they want. Compare your implementation to your neighbor's: do the two functions always behave the same way?"
740+
"Rewrite the `rescale` function so that it scales data to lie between `0.0` and `1.0` by default,but will allow the caller to specify lower and upper bounds if they wish. Compare your implementation to your neighbour's: do the two functions always behave the same way?"
741741
]
742742
},
743743
{

individual_modules/introduction_to_python/imports.ipynb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"\n",
1818
"## The Python standard library\n",
1919
"\n",
20-
"So far, we have only used a tiny portion of the Python Standard Library. This is a collection of modules that are installed when you install Python. However, the Standard Library contains many more modules that will be of use to us. Lets jump right in.\n",
20+
"So far, we have only used a tiny portion of the Python Standard Library. This is a collection of modules that are installed when you install Python. However, the Standard Library contains many more modules that will be of use to us. Let's jump right in.\n",
2121
"\n",
2222
"## Importing a module\n",
2323
"\n",
@@ -59,7 +59,7 @@
5959
"id": "9178753c-3d5d-48e6-919a-f25621708caa",
6060
"metadata": {},
6161
"source": [
62-
"We might run into a few of these errors when we try to install from external repositories. But dont panic! Usually it means that something has been placed in a strange location, and cant be found.\n",
62+
"We might run into a few of these errors when we try to install from external repositories. But dont panic! Usually it means that something has been placed in a strange location, and can't be found.\n",
6363
"\n",
6464
"## Using a module\n",
6565
"\n",
@@ -132,7 +132,7 @@
132132
"source": [
133133
"## External Python libraries\n",
134134
"\n",
135-
"There are some very common libraries that you will come across very soon into your Python journey. Some of these have been listed below:\n",
135+
"There are some very common libraries that you will come across very soon in your Python journey. Some of these have been listed below:\n",
136136
"\n",
137137
"* [NumPy](https://numpy.org/): Used for array computation, GPU processing, and generally running things really, really fast.\n",
138138
"* [SciPy](https://scipy.org/): Contains many more complex algorithms, for optimisation, geometry, algebra, statistics, and much more.\n",
@@ -146,10 +146,6 @@
146146
"* `import pandas as pd`. Access functions as `pd.XXX`.\n",
147147
"* `import matplotlib.pyplot as plt`. Access functions as `plt.XXX`.\n",
148148
"\n",
149-
"## Installing these manually\n",
150-
"\n",
151-
"We have asked you to install Anaconda because it contains many packages commonly used for data science and visualisation, including those above. If you have problems importing these (receive error messages when trying to import them), we will do our best to help you out here. However, this troubleshooting will involve reading error messages: please be patient with us!\n",
152-
"\n",
153149
"If you want to install these packages manually, we can use various installers.\n",
154150
"\n",
155151
"The most common is `pip`. For example, to install `numpy` using `pip`, we type in the shell/terminal/command prompt:\n"

0 commit comments

Comments
 (0)