Skip to content

Commit 42e12f6

Browse files
committed
changes based on comments
1 parent 6d06110 commit 42e12f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lectures/python_by_example.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ In fact, a package is just a directory containing
139139
1. possibly some compiled code that can be accessed by Python (e.g., functions compiled from C or FORTRAN code)
140140
1. a file called `__init__.py` that specifies what will be executed when we type `import package_name`
141141

142-
In fact, you can find and explore the directory for NumPy on your computer
143-
easily enough if you look around.
144-
145142
You can check the location of your `__init__.py` for NumPy in python by running the code:
146143

147144
```{code-block} ipython
@@ -280,7 +277,7 @@ x
280277

281278
Here `append()` is what's called a *method*, which is a function "attached to" an object---in this case, the list `x`.
282279

283-
We'll learn all about methods later on in {doc}`Object Oriented Programming <oop_intro>`, but just to give you some idea,
280+
We'll learn all about methods {doc}`later on <oop_intro>`, but just to give you some idea,
284281

285282
* Python objects such as lists, strings, etc. all have methods that are used to manipulate the data contained in the object.
286283
* String objects have [string methods](https://docs.python.org/3/library/stdtypes.html#string-methods), list objects have [list methods](https://docs.python.org/3/tutorial/datastructures.html#more-on-lists), etc.

0 commit comments

Comments
 (0)