Skip to content

Commit

Permalink
Merge pull request dabeaz-course#88 from bid0uille/patch_3.5
Browse files Browse the repository at this point in the history
fix sample output in 03/05 exercises 3.15+16
  • Loading branch information
dabeaz authored Jul 4, 2020
2 parents b5a87d4 + 79ff2b3 commit 3d86b44
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Notes/03_Program_organization/05_Main_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ should be able to run it interatively like this:
>>> report.main(['report.py', 'Data/portfolio.csv', 'Data/prices.csv'])
Name Shares Price Change
---------- ---------- ---------- ----------
AA 100 39.91 7.71
IBM 50 106.11 15.01
CAT 150 78.58 -4.86
MSFT 200 30.47 -20.76
GE 95 37.38 -2.99
MSFT 50 30.47 -34.63
IBM 100 106.11 35.67
AA 100 9.22 -22.98
IBM 50 106.28 15.18
CAT 150 35.46 -47.98
MSFT 200 20.89 -30.34
GE 95 13.48 -26.89
MSFT 50 20.89 -44.21
IBM 100 106.28 35.84
>>>
```

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

bash $ python3 pcost.py Data/portfolio.csv
Total cost: 44671.15
```

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

0 comments on commit 3d86b44

Please sign in to comment.