Let's say I have a list of words I want to keep.
list=['hi','name','first']
I want to be able to go through a text file, keep each and every word in my list, and output the new cleaned up content to a new file. For example:
have:
hi my name is Mike. Please write your name here first and then sign there.
want:
hi name name first