title: (Python) List index out of range - iteration
body: <pre><code>for i in range(len(lst)):    
     if lst[i][0]==1 or lst[i][1]==1:
          lst.remove(lst[i])
  return lst
  </code></pre>
  
  <p>This gives "IndexError: list index out of range" Why is this happening?</p>