Last active
December 20, 2015 09:18
-
-
Save mrdougwright/6106387 to your computer and use it in GitHub Desktop.
My first ever Python program I used to pull emails out of a messy document.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myList = [] | |
with open('file.txt') as file: | |
for line in file: | |
myList += line.split(' ') | |
for word in myList: | |
if '@' in word: | |
print word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment