for loop only returning the last word in a list of many words
<pre><code>for word in wordStr:
    word = word.strip()
print word
</code></pre>

<p>When the above code analyzes a .txt with thousands of words, why does it only return the last word in the .txt file? What do I need to do to get it to return all the words in the text file?</p>
