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, 23.06.2019 02:00
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
question
Computers and Technology, 24.06.2019 10:30
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Why should you evaluate trends when thinking about a career path?
Answers: 1
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, 02.06.2020 00:01
question
Mathematics, 02.06.2020 00:01
question
Mathematics, 02.06.2020 00:01
question
History, 02.06.2020 00:01
question
Mathematics, 02.06.2020 00:01
Questions on the website: 13722367