I get that the point is to be an introduction to the libraries and whatnot, but was I the only one who immediately thought of just using Counter?<p><pre><code> from collections import Counter
import re
[word for word, count in Counter(re.findall('\w*', text.lower())).items() if count == 1]</code></pre>