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.
Write a program that opens mbox.txt, reads through the file, and finds lines that contain email addresses ending in .com, .edu, and .org. Use .find() to identify lines where one of these exists.
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). Anytime 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.
Once you have finished reading through the mbox.txt file, print your counter totals.