title: Check if a list element exists in a string
body: <p>I'd like to check if a string contains an element from a list:</p>
  
  <pre><code>l = ['S', 'R', 'D', 'W', 'V', 'Y', 'H', 'K', 'B', 'M']
  
  s = 'YTG'
  </code></pre>
  
  <p>The first solution is:</p>
  
  <pre><code>for i in l:
      if i in s:
          print i
  </code></pre>
  
  <p>This seems inefficient though. I tried the following code but it gives me the last element of the list <code>'M'</code> instead of <code>'Y'</code>:</p>
  
  <pre><code>if any(i in s for i in l):
      print i
  </code></pre>
  
  <p>I was wondering what is the problem here?</p>
  
  <p>Thanks!</p>