In this second phase of the project you will be writing a


In this second phase of the project you will be writing a Python application that will read email data from a file and you will analyzing the data to figure out the distribution by hour of the day for each of the messages.

The program must: 

  1. Prompt for a file name
  2. Opens that file and reads through the file
  3. Displays a custom error message if the file does not exist
  4. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.
  5. From [email protected] Sat Jan 5 09:14:16 2008
  6. Accumulated the counts for each hour (key)
  7. Print out the count for each of the hours after the program has completed execution. The counts should be sorted by hour as shown below.
  8. 00 13
  9. 01 17
  10. 02 01
  11. 03 29

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: In this second phase of the project you will be writing a
Reference No:- TGS02455819

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)