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

Function main

Solutions/6_12/ticker.py:43–46  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

41 formatter.row([ row['name'], f"{row['price']:0.2f}", f"{row['change']:0.2f}"] )
42
43def main(args):
44 if len(args) != 4:
45 raise SystemExit('Usage: %s portfoliofile logfile fmt' % args[0])
46 ticker(args[1], args[2], args[3])
47
48if __name__ == '__main__':
49 import sys

Callers 1

ticker.pyFile · 0.70

Calls 1

tickerFunction · 0.70

Tested by

no test coverage detected