title: Check if all letters of string are contained in list of letters in Python
body: <p>I am trying to write a Scrabble valid word checker function in Python. I need to see if the list contains all the letters in the word, but once I match a letter I cannot use it again. So if my word is 'test' and my list is ['t', 'a', 'e', 's'] that should return False since I need 2 t's.</p>
  
  <p>Here is my idea:</p>
  
  <pre><code>def validWord(word, letterList):
    for x in word:
      if x in letterList:
        letterList = letterList.remove(x)
      else:
        return False
    return True
  </code></pre>
  
  <p>However I get this error when I compile it:
  TypeError: arument of type 'NoneType' is not iterable</p>
  
  <p>Now I am guessing that the "if x in letterList" only can run once and not iterate. So now I was hoping someone could give me a push in the right direction. This is just for fun on my part, I was going to use this to create a "Words with Friends Cheater" and show my friends.</p>
  
  <p>Thanks!</p>