title: Setting two arrays equal
body: <pre><code>array1=[0,1,2]
  array2=array1
  array2[0]=234234
  print array1
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>[234234, 1, 2]
  </code></pre>
  
  <p>Why does python change 'array1'? Shouldn't it just change array2?
  How can I prevent python from changing array1 when I change array2?</p>