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 16:10
What is the ooh? a. omaha occupation handbook b. online occupational c. occupations online d. occupational outlook handbook select the best answer from the choices provided
Answers: 3
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Write a program that asks the user to enter the name of an input file. if the file does not exist, the program should prompt the user to enter the file name again. if the user types quit in any uppercase/lowercase combinations, then the program should exit without any further output.
Answers: 3
question
Computers and Technology, 24.06.2019 02:00
Read the following scenario, and then answer the question below. you want to send an e-mail to your boss requesting a meeting to discuss a raise. what is the best example of an e-mail to an employer about this meeting? “hey jason. can we chat about getting me more money soon? let me know. peace, meg.” “hello jason. pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. i am dying to know when you can talk. sincerely, meg.” “hello jason. i have been with the company for one year and have taken on more responsibilities than outlined in my job description. i would appreciate an opportunity to speak with you about my position. let me know when we can schedule a meeting. you, meg.” “greetings jason! i hope this e-mail finds you well and happy today. i really, really want to talk to you about something important. i am not sure if you have time. i hope you do. get back in touch with me and let me know when we might talk. ever so much for taking the time to read this. sincerely, meg.”
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, 21.07.2019 17:30
question
Mathematics, 21.07.2019 17:30
Questions on the website: 13722367