title: .remove() method in Python for list of lists
body: <p>I was trying to remove an element from multiple lists within a list using .remove() method, which I know works for lists. I also used list comprehension. As an example, consider:</p>
  <pre><code>abc = [[&quot;a&quot;,&quot;b&quot;],[&quot;a&quot;,&quot;c&quot;]]
  bc = [apple.remove(&quot;a&quot;) for apple in abc]
  print(bc)
  </code></pre>
  <p>It will return the output [None, None]. I am curious why does happen and also what is the method I can use to achieve my desired output of [[&quot;b&quot;], [&quot;c&quot;]].</p>