title: Python TypeError: coercing to Unicode: need string or buffer, int found
body: <p>I have array of words in 'newsorted' and array of sentences in 'sent'.
  I need to print all the sentence in 'sent' that has at least one word in 'newsorted' .
  Here is my code. </p>
  
  <pre><code>for s in sent:
      for w in newsorted :
          if w in s:
              print "------\n",s
              break
  </code></pre>
  
  <p>I get the following error when running the code</p>
  
  <pre><code>Traceback (most recent call last):
    File "withreferences.py", line 181, in &lt;module&gt;
      if w in s:
  TypeError: coercing to Unicode: need string or buffer, int found
  </code></pre>
  
  <p>Thanks in advance.</p>