Make a stock report given portfolio and price data files.
(portfoliofile, pricefile)
| 47 | print('%10s %10d %10.2f %10.2f' % row) |
| 48 | |
| 49 | def portfolio_report(portfoliofile, pricefile): |
| 50 | ''' |
| 51 | Make a stock report given portfolio and price data files. |
| 52 | ''' |
| 53 | # Read data files |
| 54 | portfolio = read_portfolio(portfoliofile) |
| 55 | prices = read_prices(pricefile) |
| 56 | |
| 57 | # Create the report data |
| 58 | report = make_report_data(portfolio, prices) |
| 59 | |
| 60 | # Print it out |
| 61 | print_report(report) |
| 62 | |
| 63 | def main(args): |
| 64 | if len(args) != 3: |
no test coverage detected