title: Slicing a list of dictionaries and removing one key
body: <p>I have a list of dictionaries, like the one below:</p>
  
  <pre><code>l = [ { "a": 10, "b": 4, "c": 6 },
        { "a": 10, "b": 6, "c": 8 },
        { "a": 13, "b": 3, "c": 9 },
        { "a": 12, "b": 5, "c": 3 },
        { "a": 11, "b": 7, "c": 1 } ]
  </code></pre>
  
  <p>Now, I want to slice it and have a list only with dictionaries where the key <code>a</code> has value <code>10</code>, but removing the key <code>a</code> from the dictionary.  Like the list below:</p>
  
  <pre><code>nl = [ { "b": 4, "c": 6 },
         { "b": 6, "c": 8 } ]
  </code></pre>
  
  <p>I can do this by processing <code>l</code> twice:</p>
  
  <pre><code>l[:] = [d for d in l if d.get("a") == 10]
  nl = []
  for c in l:
      del c["a"]
      nl.append(c)
  </code></pre>
  
  <p>Is there a more straightforward way to accomplish this?</p>