title: Search in lists of lists by given index
body: <p>I have a list of two-item lists and need to search for things in it.</p>
  <p>If the list is:</p>
  <pre><code>list = [['a','b'], ['a','c'], ['b','d']]
  </code></pre>
  <p>I can search for a pair easily by doing</p>
  <pre><code>['a','b'] in list
  </code></pre>
  <p>Now, is there a way to see if I have a pair in which a string is present in just the second position? I can do this:</p>
  <pre><code>for i in range (0, len(list)):
      if list[i][1]==search:
         found=1
  </code></pre>
  <p>But is there a (better) way without the <code>for</code> loop? I don't need to know <code>i</code> or keep the loop going after it's found.</p>