title: Is 'for x in array' always result in sorted x? [Python/NumPy]
body: <p>For arrays and lists in Python and Numpy are the following lines equivalent:</p>
  
  <pre><code>itemlist = []
  for j in range(len(myarray)):
      item = myarray[j]
      itemlist.append(item)
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>itemlist = []
  for item in myarray:
      itemlist.append(item)
  </code></pre>
  
  <p>I'm interested in the <em>order</em> of itemlist. In a few examples that I have tried they are identical, but is it <em>guaranteed</em>? For example, I know that the <code>foreach</code> statement in C# doesn't guarantee order, and that I should be careful with it.</p>