Check word against very large list
<p>If I have a list of 10,000 words, what's an optimized way to check if a word is in that list that won't slow the app down to a crawl? </p>

<p>Should I load the words in from a file and check against that?</p>

<pre><code>def check_for_word(word):
    HUGE_LIST = [...]  # 10,000 Words
    if word in HUGE_LIST:
         return True
    else:
         return False
</code></pre>