10.2 Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. 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 firstname.lastname@example.org Sat Jan 5
Once you have accumulated the counts for each hour, print out the counts, sorted by hour as shown below.
I have this much done
name = raw_input(“Enter file:”)
#open file in read mode
handle = open(name,”r”)
#read all contnets of file
#close the file
#loop each line of text
for line in text:
if not line.startswith('From'):continue
#split the line into words
#if length of words is more than 5, than index will be valid.