File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed
Notes/03_Program_organization Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -263,13 +263,13 @@ should be able to run it interatively like this:
263
263
>> > report.main([' report.py' , ' Data/portfolio.csv' , ' Data/prices.csv' ])
264
264
Name Shares Price Change
265
265
---------- ---------- ---------- ----------
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
273
273
>> >
274
274
```
275
275
@@ -291,16 +291,16 @@ execute as a script on the command line:
291
291
bash $ python3 report.py Data/portfolio.csv Data/prices.csv
292
292
Name Shares Price Change
293
293
---------- ---------- ---------- ----------
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
301
301
302
302
bash $ python3 pcost.py Data/portfolio.csv
303
303
Total cost: 44671.15
304
304
```
305
305
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 )
You can’t perform that action at this time.
0 commit comments