title: Python range to list
body: <p>I am trying to convert a range to list.</p>
  
  <pre><code>nums = []
  for x in range (9000, 9004):
      nums.append(x)
      print nums
  </code></pre>
  
  <p>output</p>
  
  <pre><code>[9000]
  [9000, 9001]
  [9000, 9001, 9002]
  [9000, 9001, 9002, 9003]
  </code></pre>
  
  <p>I just need something like </p>
  
  <pre><code> [9000, 9001, 9002, 9003]
  </code></pre>
  
  <p>How do I get just the requred list ? </p>