title: List equality in Python
body: <p>Making a KMeans clustering algorithm here:
  Getting stuck on list equality</p>
  
  <pre><code>#clusters = [[],[]]
  prevclusters = list(clusters) # Making a new list using clusters elements.
  .....
  clusters[loc].append(inputs[i]) # Modifying clusters in a for loop
  ....
  # Now, clusters = [[[1, 1], [1, 2]], [[3, 7], [4, 5], [5, 5]]]
  if prevclusters == clusters: # Gives True, why ?
  </code></pre>