Skip to content

Commit 51be77c

Browse files
committed
Merge branch 'use-import-instead-of-load' of btel/python-novice-inflammation into gh-pages
* 'use-import-instead-of-load' of https://github.com/btel/python-novice-inflammation: use 'import' a library instead of 'load'
2 parents a0f7ee6 + 881be1f commit 51be77c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

01-numpy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ minutes: 30
77
> ## Learning Objectives {.objectives}
88
>
99
> * Explain what a library is, and what libraries are used for.
10-
> * Load a Python library and use the things it contains.
10+
> * Import a Python library and use the things it contains.
1111
> * Read tabular data from a file into a program.
1212
> * Assign values to variables.
1313
> * Select individual values and subsections from data.
@@ -22,18 +22,18 @@ specialized tools built up from these basic units live in [libraries](reference.
2222
that can be called upon when needed.
2323

2424
In order to load our inflammation data,
25-
we need to [import](reference.html#import) a library called [NumPy](http://docs.scipy.org/doc/numpy/ "NumPy Documentation").
25+
we need to open ([import](reference.html#import) in Python terminology) a library called [NumPy](http://docs.scipy.org/doc/numpy/ "NumPy Documentation").
2626
In general you should use this library if you want to do fancy things with numbers,
2727
especially if you have matrices or arrays.
28-
We can load NumPy using:
28+
We can import NumPy using:
2929

3030
~~~ {.python}
3131
import numpy
3232
~~~
3333

3434
Importing a library is like getting a piece of lab equipment out of a storage locker
3535
and setting it up on the bench. Libraries provide additional functionality to the basic Python package, much like a new piece of equipment adds functionality to a lab space.
36-
Once you've loaded the library,
36+
Once you've imported the library,
3737
we can ask the library to read our data file for us:
3838

3939
~~~ {.python}

0 commit comments

Comments
 (0)