Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent use of module and library #472

Merged
merged 1 commit into from
May 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _episodes/06-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ questions:
- "How can I find out what that software does?"
objectives:
- "Explain what software libraries are and why programmers create and use them."
- "Write programs that import and use libraries from Python's standard library."
- "Find and read documentation for standard libraries interactively (in the interpreter) and online."
- "Write programs that import and use modules from Python's standard library."
- "Find and read documentation for the standard library interactively (in the interpreter) and online."
keypoints:
- "Most of the power of a programming language is in its libraries."
- "A program must import a library module in order to use it."
Expand Down Expand Up @@ -126,7 +126,7 @@ cos(pi) is -1.0
{: .output}

* Commonly used for libraries that are frequently used or have long names.
* E.g., `matplotlib` plotting library is often aliased as `mpl`.
* E.g., the `matplotlib` plotting library is often aliased as `mpl`.
* But can make programs harder to understand,
since readers must learn your program's aliases.

Expand Down
4 changes: 2 additions & 2 deletions _episodes/14-looping-data-sets.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ dtype: float64
* The most common patterns are:
* `*` meaning "match zero or more characters"
* `?` meaning "match exactly one character"
* Python contains the [`glob`](https://docs.python.org/3/library/glob.html) library to provide pattern matching functionality
* The [`glob`](https://docs.python.org/3/library/glob.html) library contains a function also called `glob` to match file patterns
* Python's standard library contains the [`glob`](https://docs.python.org/3/library/glob.html) module to provide pattern matching functionality
* The [`glob`](https://docs.python.org/3/library/glob.html) module contains a function also called `glob` to match file patterns
* E.g., `glob.glob('*.txt')` matches all files in the current directory
whose names end with `.txt`.
* Result is a (possibly empty) list of character strings.
Expand Down