title: Alternate for range in python
body: <p>If I have to generate natural numbers, I can use 'range' as follows:</p>
  
  <pre><code>list(range(5))
  </code></pre>
  
  <p>[0, 1, 2, 3, 4]</p>
  
  <p>Is there any way to achieve this without using range function or looping?</p>