Skip to content

Commit 0942f39

Browse files
authored
Merge pull request #74 from chennesy/scottcpeterson-patch-3
Update libraries.md--change thing_name to function
2 parents 3e75190 + 59720a6 commit 0942f39

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

episodes/libraries.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ A *Python library* is a collection of files (called *modules*) that contains fun
3838

3939
## You must import a library or module before using it.
4040

41-
You can use `import` to load a library or module into a program's memory. Then you can refer to things from the library with the syntax `library_name.thing_name`. When we get to pandas we will import a library, but right now let's import and use the `string` module from Python's standard library to generate a list of lowercase ASCII letters and to change the case of a text string:
41+
Use `import` to load a library into a program's memory. Then you can refer to things from the library as `library_name.function`. Let's import and use the `string` library to generate a list of lowercase ASCII letters and to change the case of a text string:
42+
4243

4344
```python
4445
import string
@@ -55,7 +56,7 @@ Capitalise This Sentence Please.
5556
::::::::::::::::::::::::::::::::::::::::: callout
5657

5758
## Dot notation
58-
We introduced Python dot notation when we looked at methods like `list_name.append()`. We can use the same syntax when we call fucntions of a specific Python library, such as `string.capwords()`. In fact, this dot notation is common in Python, and can refer to relationships between different types of Python objects. Remember that it is always the case that the object to the right of the dot is a part of the larger object to the left. If we expressed capitals of countries using this syntax, for example, we would say, `Brazil.São_Paulo()` or `Japan.Tokyo()`.
59+
We introduced Python dot notation when we looked at methods like `list_name.append()`. We can use the same syntax when we call functions of a specific Python library, such as `string.capwords()`. In fact, this dot notation is common in Python, and can refer to relationships between different types of Python objects. Remember that it is always the case that the object to the right of the dot is a part of the larger object to the left. If we expressed capitals of countries using this syntax, for example, we would say, `Brazil.São_Paulo()` or `Japan.Tokyo()`.
5960

6061
::::::::::::::::::::::::::::::::::::::::::::::::::
6162

0 commit comments

Comments
 (0)