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

Function main

Solutions/8_1/ticker.py:36–39  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

34 formatter.row([ row['name'], f"{row['price']:0.2f}", f"{row['change']:0.2f}"] )
35
36def main(args):
37 if len(args) != 4:
38 raise SystemExit('Usage: %s portfoliofile logfile fmt' % args[0])
39 ticker(args[1], args[2], args[3])
40
41if __name__ == '__main__':
42 import sys

Callers 1

ticker.pyFile · 0.70

Calls 1

tickerFunction · 0.70

Tested by

no test coverage detected