How do I skip over multiple words in a file?

chad cdalten at
Thu Nov 11 16:07:32 CET 2010

Let's say that I have an article. What I want to do is read in this
file and have the program skip over ever instance of the words "the",
"and",  "or", and "but". What would be the general strategy for
attacking a problem like this?

More information about the Python-list mailing list