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

Function main

Solutions/7_9/ticker.py:37–40  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

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

Callers 1

ticker.pyFile · 0.70

Calls 1

tickerFunction · 0.70

Tested by

no test coverage detected