title: How to copy a list over in python without keeping them linked?
body: <p>I tried:</p>
  
  <pre><code>A = [1,2,3]
  B = A
  B[0] = A[0]*3
  </code></pre>
  
  <p>should give:</p>
  
  <pre><code>B == [3,2,3]
  True
  A == [1,2,3]
  True
  </code></pre>
  
  <p>but what it really does:</p>
  
  <pre><code>B == [3,2,3]
  A == [3,2,3]
  </code></pre>
  
  <p>how do I copy A over in B without keeping A linked to B?
  Thanks for your help.</p>