MCPcopy Create free account
hub / github.com/dabeaz-course/practical-python / main

Function main

Solutions/8_2/pcost.py:12–16  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

10 return portfolio.total_cost
11
12def main(args):
13 if len(args) != 2:
14 raise SystemExit('Usage: %s portfoliofile' % args[0])
15 filename = args[1]
16 print('Total cost:', portfolio_cost(filename))
17
18if __name__ == '__main__':
19 import sys

Callers 1

pcost.pyFile · 0.70

Calls 1

portfolio_costFunction · 0.70

Tested by

no test coverage detected