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:
- Prompt for a file name
- Opens that file and reads through the file
- Displays a custom error message if the file does not exist
- 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.
- From [email protected] Sat Jan 5 09:14:16 2008
- Accumulated the counts for each hour (key)
- 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.
- 00 13
- 01 17
- 02 01
- 03 29