title: Use of del in Python
body: <p>I wrote the following code in python. I was not able to understand the logic behind the output. Can you help me out?</p>
  
  <pre><code>a= [1,2,3]
  print(a)
  del a[1]
  print(a)
  </code></pre>
  
  <p>The result came out to be
  [1, 2, 3]
  [1, 3]</p>