title: Difference between list = [] vs. list.clear()
body: <p>What is the difference between <code>list = []</code> and <code>list.clear()</code>?</p>
  
  <p>Base on the behavior of my code and my own observation, <code>list.clear()</code> removes its entries and also the entries I used to append its data.</p>
  
  <p>Example:</p>
  
  <pre><code>container.append(list)
  list.clear()
  </code></pre>
  
  <p><code>container</code> will also be <code>[]</code></p>