title: How to reverse a numpy array using loops
body: <p>Given this numpy array:</p>
  
  <pre><code> Input:  nums = np.array([0] * SIZE, dtype=int)
   Output: [ 10  20  30  40  50  60  70  80  90 100]
  </code></pre>
  
  <p>I need to reverse the array elements using a loop (not using a numpy command directly).
  So the desired outcome would be: [100, 90 ,80,....10]<br>
  How can you reverse these using a for or while loop structure?</p>
  
  <p>Here is what I've got so far.</p>
  
  <pre><code>for i in range(len(arr)-1, -1, -1):
          print(arr[i])
  </code></pre>
  
  <p>This will print the reverse order, but how can store these elements back into the array in this reverse order?</p>
  
  <blockquote>
    <p>I am aware that numpy has built in functions to do this, however I want to understand this from a first principals approach.</p>
  </blockquote>