Question: The Email _ log . txt file contains data for an email inbox. Each line includes an email address followed by a number that represents

The Email_log.txt file contains data for an email inbox. Each line includes an email address followed by a number that represents the number of messages received from that address. Complete the program in lab10_p5.py so that it records in the dictionary message_count the total number of messages from each domain name (not the whole address, just the part after the @ and before the space). At the end of the program, print out the contents of your dictionary. The domains should be the keys of the dictionary, and the counts of the domains should be the values of the dictionary. For example, message_count['charlotte.edu'] should be 6.
emaillog.txt file contents:
itsc-1212@charlotte.edu 1
margie88@vt.edu 3
cwen@northeastern.edu 5
antranig@charlotte.edu 1
koury-cic@northeastern.edu 2
gsilver@charlotte.edu 3
david.horwitz@uct.ac.za 4
wagnermr@charlotte.edu 1
zqian@umich.edu 4
stephen.marquard@uct.ac.za 2
ray@vt.edu 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!