Skip to content

Commit 3d86b44

Browse files
authored
Merge pull request dabeaz-course#88 from bid0uille/patch_3.5
fix sample output in 03/05 exercises 3.15+16
2 parents b5a87d4 + 79ff2b3 commit 3d86b44

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Notes/03_Program_organization/05_Main_module.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ should be able to run it interatively like this:
263263
>>> report.main(['report.py', 'Data/portfolio.csv', 'Data/prices.csv'])
264264
Name Shares Price Change
265265
---------- ---------- ---------- ----------
266-
AA 100 39.91 7.71
267-
IBM 50 106.11 15.01
268-
CAT 150 78.58 -4.86
269-
MSFT 200 30.47 -20.76
270-
GE 95 37.38 -2.99
271-
MSFT 50 30.47 -34.63
272-
IBM 100 106.11 35.67
266+
AA 100 9.22 -22.98
267+
IBM 50 106.28 15.18
268+
CAT 150 35.46 -47.98
269+
MSFT 200 20.89 -30.34
270+
GE 95 13.48 -26.89
271+
MSFT 50 20.89 -44.21
272+
IBM 100 106.28 35.84
273273
>>>
274274
```
275275

@@ -291,16 +291,16 @@ execute as a script on the command line:
291291
bash $ python3 report.py Data/portfolio.csv Data/prices.csv
292292
Name Shares Price Change
293293
---------- ---------- ---------- ----------
294-
AA 100 39.91 7.71
295-
IBM 50 106.11 15.01
296-
CAT 150 78.58 -4.86
297-
MSFT 200 30.47 -20.76
298-
GE 95 37.38 -2.99
299-
MSFT 50 30.47 -34.63
300-
IBM 100 106.11 35.67
294+
AA 100 9.22 -22.98
295+
IBM 50 106.28 15.18
296+
CAT 150 35.46 -47.98
297+
MSFT 200 20.89 -30.34
298+
GE 95 13.48 -26.89
299+
MSFT 50 20.89 -44.21
300+
IBM 100 106.28 35.84
301301

302302
bash $ python3 pcost.py Data/portfolio.csv
303303
Total cost: 44671.15
304304
```
305305

306-
[Contents](../Contents.md) \| [Previous (3.4 Modules)](04_Modules.md) \| [Next (3.6 Design Discussion)](06_Design_discussion.md)
306+
[Contents](../Contents.md) \| [Previous (3.4 Modules)](04_Modules.md) \| [Next (3.6 Design Discussion)](06_Design_discussion.md)

0 commit comments

Comments
 (0)