MCPcopy Create free account
hub / github.com/ActiveState/code / usage

Function usage

recipes/Python/578851_BentleyKnuth_problem/recipe-578851.py:20–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18sys_argv = sys.argv
19
20def usage():
21 sys.stderr.write("Usage: %s n file\n" % sys_argv[0])
22 sys.stderr.write("where n is the number of most frequently\n")
23 sys.stderr.write("used words you want to find, and \n")
24 sys.stderr.write("file is the name of the file in which to look.\n")
25
26if len(sys_argv) < 3:
27 usage()

Callers 1

recipe-578851.pyFile · 0.70

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected