title: Python: How to append list values into the list properly?
body: <p>I want to add the values of temp list into the main list. I tried to add some values into the temp list and then append the temp list into the main list as following, but it shows always latest values in the main list.</p>
  
  <pre><code>&gt;&gt;&gt; temp =[]
  &gt;&gt;&gt; temp.append(123)
  &gt;&gt;&gt; temp.append(10)
  &gt;&gt;&gt; temp.append(18)
  &gt;&gt;&gt; mutR =[]
  &gt;&gt;&gt; mutR.append(temp)
  &gt;&gt;&gt; print mutR
  [[123, 10, 18]]
  &gt;&gt;&gt; temp[:]=[]
  &gt;&gt;&gt; temp.append(3)
  &gt;&gt;&gt; temp.append(4)
  &gt;&gt;&gt; temp.append(5)
  &gt;&gt;&gt; mutR.append(temp)
  &gt;&gt;&gt; print mutR
  [[3, 4, 5], [3, 4, 5]]
  </code></pre>
  
  <p>My expectation is:</p>
  
  <pre><code>&gt;&gt;&gt; print mutR
  [[123, 10, 18], [3, 4, 5]] 
  </code></pre>
  
  <p>but it is <code>[[3, 4, 5], [3, 4, 5]]</code>.</p>