Skip to content

Commit 37ee929

Browse files
committed
Various typos fixed
1 parent 3676073 commit 37ee929

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

Notes/01_Introduction/01_Python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ will be able to use it everywhere else.
6161

6262
### Exercise 1.1: Using Python as a Calculator
6363

64-
On your machine, start Python and use it as a calulator to solve the
64+
On your machine, start Python and use it as a calculator to solve the
6565
following problem.
6666

6767
Lucky Larry bought 75 shares of Google stock at a price of $235.14 per

Notes/03_Program_organization/00_Overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ some useful code templates for writing more useful scripts.
1414
* [3.3 Exception Handling](03_Error_checking.md)
1515
* [3.4 Modules](04_Modules.md)
1616
* [3.5 Main module](05_Main_module.md)
17-
* [3.6 Design Discussion about Embracing Flexibilty](06_Design_discussion.md)
17+
* [3.6 Design Discussion about Embracing Flexibility](06_Design_discussion.md)
1818

1919
[Contents](../Contents.md) \| [Prev (2 Working With Data)](../02_Working_with_data/00_Overview.md) \| [Next (4 Classes and Objects)](../04_Classes_objects/00_Overview.md)
2020

Notes/03_Program_organization/02_More_functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ line of data isn’t interpreted as a header line. Also, you’ll need to
469469
make sure you don’t create dictionaries as there are no longer any
470470
column names to use for keys.
471471

472-
### Exercise 3.7: Picking a different column delimitier
472+
### Exercise 3.7: Picking a different column delimiter
473473

474474
Although CSV files are pretty common, it’s also possible that you
475475
could encounter a file that uses a different column separator such as

Notes/04_Classes_objects/02_Inheritance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ in your `report.py` program. It should look something like this:
241241
```python
242242
def print_report(reportdata):
243243
'''
244-
Print a nicely formated table from a list of (name, shares, price, change) tuples.
244+
Print a nicely formatted table from a list of (name, shares, price, change) tuples.
245245
'''
246246
headers = ('Name','Shares','Price','Change')
247247
print('%10s %10s %10s %10s' % headers)
@@ -312,7 +312,7 @@ the output. For example, like this:
312312

313313
def print_report(reportdata, formatter):
314314
'''
315-
Print a nicely formated table from a list of (name, shares, price, change) tuples.
315+
Print a nicely formatted table from a list of (name, shares, price, change) tuples.
316316
'''
317317
formatter.headings(['Name','Shares','Price','Change'])
318318
for name, shares, price, change in reportdata:

Notes/05_Object_model/02_Classes_encapsulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Stock:
184184
...
185185
```
186186

187-
This allows you to drop the extra parantheses, hiding the fact that it's actually a method:
187+
This allows you to drop the extra parentheses, hiding the fact that it's actually a method:
188188

189189
```python
190190
>>> s = Stock('GOOG', 100, 490.1)

Notes/07_Advanced_Topics/04_Function_decorators.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ If you define a function, its name and module are stored in the
118118

119119
```python
120120
>>> def add(x,y):
121-
return x+y
121+
return x+y
122122

123123
>>> add.__name__
124124
'add'
@@ -145,9 +145,9 @@ Here is an example of how your decorator should work:
145145
>>> from timethis import timethis
146146
>>> @timethis
147147
def countdown(n):
148-
while n > 0:
149-
n -= 1
150-
148+
while n > 0:
149+
n -= 1
150+
151151
>>> countdown(10000000)
152152
__main__.countdown : 0.076562
153153
>>>

Notes/08_Testing_debugging/01_Testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Ran 1 tests in 0.000s
270270
OK
271271
```
272272

273-
Once you're satisifed that it works, write additional unit tests that
273+
Once you're satisfied that it works, write additional unit tests that
274274
check for the following:
275275

276276
- Make sure the `s.cost` property returns the correct value (49010.0)

Notes/08_Testing_debugging/03_Debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ For breakpoints location is one of the following.
147147

148148
```code
149149
(Pdb) b 45 # Line 45 in current file
150-
(Pdb) b file.py:45 # Line 34 in file.py
150+
(Pdb) b file.py:45 # Line 45 in file.py
151151
(Pdb) b foo # Function foo() in current file
152152
(Pdb) b module.foo # Function foo() in a module
153153
```

Notes/InstructorNotes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ topics. For example, scientists/engineers might want to know about
4747
data analysis or plotting. So, you can show them how to make a plot
4848
using matplotlib. Web programmers might want to know how to present
4949
stock market data on a web-page. So, you can talk about template
50-
engines. Syadmins might want to do something with log files. So, you
50+
engines. Sysadmins might want to do something with log files. So, you
5151
can point them at a log file of real-time streaming stock data.
5252
Software engineers might want to know about design. So, you can have
5353
them look at ways to encapsulate stock data inside an object or making

0 commit comments

Comments
 (0)