384
edits
Changes
→Suggested Process
<li> Implement the same things as parse_for_user but for `parse_for_hosts`. Output should be sorted.
<li> Compare your output with the output below.
<li> Write the `parse_for_daily()` function using the pseudocode given. This should be taking the list of lines from your file, and output a list of lists dictionary with start dates in DD/MM/YYYY format as well the key and usage in secondsas the value.<li> <code> [[{'01/01/1980', : '1200'], ['02/01/1980', : '2400'], ['03/01/1980', : '2200']] } </code>
<li> Once your `parse_for_daily()` function works, call it with the argparse options, and display the contents.
<li> Write (or modify) a function to do the same for remote hosts.