title: How to remove a 2-tuple of int/float from a list in a loop?
body: <p>So if I were to have a list:</p>
  
  <pre><code>x = [(1,3.),(2,4.),(5,6), (6,6.)]
  </code></pre>
  
  <p>how would I be able to remove the ones that have 6 as it's second(or first if in indexing terms) term? It would look like:</p>
  
  <pre><code>x = [(1,3.),(2,4.)]
  </code></pre>
  
  <p>The code I have tried always gave me the Errors:</p>
  
  <pre><code>TypeError: 'float' object is not subscriptable
  </code></pre>
  
  <p>or </p>
  
  <pre><code>TypeError: 'int' object is not subscriptable
  </code></pre>