Feb-20-2018, 02:01 AM
I am reading the Google Python crash course, where they give you a challenge to open .html files that contain tables of popular baby names in a given year, sort the babynames alphabetically, and return a list with the sorted names and corresponding names. The solution code is given in the link below:
https://github.com/mlafeldt/google-pytho...bynames.py
Please explain to me what the purpose of "--summaryfile" is. I know that sys.argv represents the list of arguments that you include when typing "babynames.py" into the Command Prompt. I also know that sys.argv[0] is, for me at least, the directory path to the babynames.py program.
In the solution, is "--summaryfile" expected to be replaced by an actual file name?
Thanks for your help.
https://github.com/mlafeldt/google-pytho...bynames.py
Please explain to me what the purpose of "--summaryfile" is. I know that sys.argv represents the list of arguments that you include when typing "babynames.py" into the Command Prompt. I also know that sys.argv[0] is, for me at least, the directory path to the babynames.py program.
In the solution, is "--summaryfile" expected to be replaced by an actual file name?
Thanks for your help.