subject

1. Use three counter variables named counter_com, counter_edu and counter_org to keep track of how many of each you find. Declare these just under the comment with your name/date at the top of the file. 2. Write a program that opens mbox. txt, reads through the file, and finds lines that contain e-mail addresses ending in .com, .edu and .org. Use .find() to identify lines where one of these exist.
3. Define an output file towards the top of your code-named "emails_output. txt" (just do this as the next line after you open the mbox. txt file). Any time you find() a line in mbox. txt that has the .com, .edu, or .org email address in it, increment the proper counter and write the entire line to your emails_output. txt file.
4. Once you have finished reading through the mbox. txt file, print your counter totals.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
In he example code, what does the title attribute create? a tool tip an element a source a markup
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Im doing this last minute and literally none of my neighbors or people that my dad works with use excel so if anyone could me make up an example
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Which factor is the most important when choosing a website host? whether customers will make secure transactions the number of email accounts provided the purpose of the website the quality of the host control panel
Answers: 3
You know the right answer?
1. Use three counter variables named counter_com, counter_edu and counter_org to keep track of how m...
Questions
question
Mathematics, 14.10.2019 22:30
question
Health, 14.10.2019 22:30
Questions on the website: 13722363