title: How can I know if some condition of tuple is in the set or not?
body: <p>I've just started to use Python from scratch.</p>
  
  <p>My problem is:</p>
  
  <p>Let's say there exist a list called 'list' having some tuples inside as below.</p>
  
  <pre><code>list = [(1,2), (3,4), (5,6)]
  </code></pre>
  
  <p>I want to know if there's some tuples inside that the second element is 2.</p>
  
  <p>What I tried was:</p>
  
  <pre><code>(_,2) in list
  </code></pre>
  
  <p>but it returns False value, even though there's (1,2) inside.</p>
  
  <p>How can I fix it?
  Thanks in advance :)</p>
  
  <pre><code>&gt;&gt; list = [(1,2), (3,4), (5,6)]
  
  &gt;&gt; (_,2) in list
  </code></pre>