Python: From a text file, character by character create an array of strings : <p>The best way to explain:</p>

<ol>
<li>Program takes a text-file an examines character by character looking for double characters (ie 'ff'.</li>
</ol>

<p>I need to display the words that contain double characters.</p>

<p>I thought the best way to do this would be to form a list, of each character.  When a double character is found and a space is reached (end of word) convert the contents of the list into a string, and place in a separate array.  Then clear contents of the list.</p>

<p>If a space is reached before finding a double letter (word does not contain one) clear the list.</p>

<p>**Question: What is the best approach to this.  I have tried to append character by character to the list, but when printing my list it is empty.</p>
