Question: CSC 2230 Computer Programming for Engineers. This is python. Also in class, I'm learning up to lists right now. Please help. 5) Mailbox++ Write a

CSC 2230 Computer Programming for Engineers. This is python. Also in class, I'm learning up to lists right now. Please help.

CSC 2230 Computer Programming for Engineers. This is python. Also in class,

5) Mailbox++ Write a program to read through the mail box data (mbox.txt) and when you find line that starts with "From", you will split the line into words using the split function. We are interested in who sent the message, which is the second word on the From line. From stephen.marquarduct.ac.za Sat Jan 5 09:14:16 2008 Your program's job is to collect the senders' email addresses and print them. However, your program should print each email address only once. To do this, store the email addresses in a list, and don't store it again by checking if the email address is already in the list, like you did in the previous problem. Then print the following: Number of unique emails All email addresses without duplication, in a sorted order You may want to test your code with mbox-short.txt first, then confirm that your code is working well with mbox.txt before submission. FYl, the number of unique senders in mbox-short.txt is 11, and mbox.txt 46. Again, text files are the same ones from the following links: .www.py4e.com/code3/mbox.txt www.py4e.com/code3/mbox-short.txt

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!