[Tutor] Hello Can someone looked at my problem? stuck

Palice Fan magicwizardstar at gmail.com
Wed Oct 3 05:39:00 CEST 2012

i got stuck with the last bit of my programming practice.
Can somebody help me?
Write a program to read through a mail log, and figure out who had the most
messages in the file. The program looks for “From” lines and takes the
second parameter on
those lines as the person who sent the mail.
The program creates a Python dictionary that maps the sender’s address to
the total number of
messages for that person.
After all the data has been read the program looks through the dictionary
using a maximum loop
(see Section 5.7.2) to find who has the most messages and how many messages
the person has.

Enter a file name: mbox-short.txt
cwen at iupui.edu :5
Enter a file name: mbox.txt
zqian at umich.edu :195

Instead of printing off a number beside the email, i got another email and
i dont know how to fix it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121002/3fd4d310/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9.4 stuck.png
Type: image/png
Size: 67410 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tutor/attachments/20121002/3fd4d310/attachment-0001.png>

More information about the Tutor mailing list