title: Removing tuples from a list using if statements
body: <p>I am attempting to remove a tuple from a list based on its contents. The example illustrates what I have attempted to do:</p>
  
  <pre><code>i=[(a,0),(b,''),(c,5)]
  </code></pre>
  
  <p>The goal is to remove the tuple with an empty value in the second space. The final list would look like this:</p>
  
  <pre><code>i=[(a,0),(c,5)]
  </code></pre>
  
  <p>I have attempted to achieve this using the code:</p>
  
  <pre><code>for p in i:
      if '' in p[1]:
          i.remove(p)
  </code></pre>
  
  <p>However, if I print <code>i</code> at this point the list has no changes done to it. Where might I be going wrong?</p>