In python, how to keep id of list unchanged when we changed list contents
<p>I want remove list <code>b</code> from list <code>a</code> without changing id of list <code>a</code> I tried below method:</p>

<pre><code>for i in b:
    a.remove(i)
</code></pre>

<p>Is there any better ways?</p>