title: Python removing items from list
body: <p>I have a list in the given format: </p>
  
  <pre><code>[['John', 'Smith'], ['Linus', 'Torvalds'], ['Bart', 'Simpson']]
  </code></pre>
  
  <p>There are some elements like this in the list ['Linus Torvalds', ''] and I want to remove those. So why doesn't the following code remove them?</p>
  
  <pre><code>for i in people:
      if(i[0] == '' or i[1] == ''):
          print people.pop(people.index(i))
  </code></pre>