Question: Copy the code to the above program into a new program to figure out who has the most messages in the file. After all

Copy the code to the above program into a new program to figure out who has the most messages in the file. After all

Copy the code to the above program into a new program to figure out who has the most messages in the file. After all the data has been read and the dictionary has been created, look through the dictionary using a maximum loop (see Chapter 5: Maximum and minimum loops) to find who has the most messages and print how many messages the person has. Enter a file name: mbox-short.txt cwen@iupui.edu 5 Enter a file name: mbox.txt zqian@umich.edu 195 Your program should automatically load https://www.py4e.com/code3/mbox.txt. I should not need to input or upload anything to run this. Attach File Browse Local Files Browse Content Collection MC Home - montg X X 19 F 888 D M. E 42F Sunny Blackboard Lea X Search results CO NEW Individua x | Co Untitled15.ipyn x y! corsehero - Ya X bb-montgomerycollege.blackboard.com/ultra/courses/_119290_1/cl/outline * Question Completion Status: QUESTION 4 This program records the domain name (instead of the address) where the message was sent from instead of who the mail came from (i.e., the whole email address). At the end of the program, print out the contents of your dictionary. python schoolcount.py Enter a file name: mbox-short.txt {'media.berkeley.edu': 4, 'uct.ac.za': 6, 'umich.edu': 7, 'gmail.com': 1, 'caret.cam.ac.uk': 1, 'iupui.edu': 8} Your program should automatically load https://www.py4e.com/code3/mbox.txt. I should not need to input or upload anything to run this. Attach File Browse Local Files Dashboard Q Search Browse Content Collection H X + 10 points Save All Answers > T Save Answer Save and Submit X B : 9:49 AM 3/6/2023

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 Programming Questions!