title: Weird output of python array
body: <p>I'm newbie in python. I don't understand the output of following python program.</p>
  
  <pre><code>arr = []
  for i in range(3):
      arr.append(i * 2)
  for arr[i] in arr:
      print arr[i]
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>0
  2
  2 // Why also print 2?? 
  </code></pre>
  
  <p>Here, An array elements print twice time <code>2</code>. This is really weird. 
  Please someone help me to clear my doubt. Why program print twice time <code>2</code>?</p>