title: How to properly remove elements from array in loop using Python
body: <p>I tried to remove only one element from an array and print remaining ones in a loop:</p>
  
  <pre><code>arr = [1,2,3,4,5]
  for i in arr:
      a = arr
      a.remove(i)
      print a
  </code></pre>
  
  <p>So I am expecting it to print this:</p>
  
  <pre><code>[2, 3, 4, 5]
  [1, 3, 4, 5]
  [1, 2, 3, 5]
  [1, 2, 3, 4]
  </code></pre>
  
  <p>Why am I gettting the following results instead:</p>
  
  <pre><code>[2, 3, 4, 5]
  [2, 4, 5]
  [2, 4]
  </code></pre>