title: Python 3 range Vs Python 2 range
body: <p>I recently started learning python 3.<br />
  In <strong>python 2</strong> the <code>range()</code> function can be used to assign list elements:</p>
  <pre><code>&gt;&gt;&gt; A = []
  &gt;&gt;&gt; A = range(0,6)
  &gt;&gt;&gt; print A
  [0, 1, 2, 3, 4, 5]
  </code></pre>
  <p>But in <strong>python 3</strong> the <code>range()</code> function outputs this:</p>
  <pre><code>&gt;&gt;&gt; A = []
  &gt;&gt;&gt; A = range(0,6)
  &gt;&gt;&gt; print(A)
  range(0, 6)
  </code></pre>
  <p>Why is this happening?<br />
  Why did python do this change?<br />
  Is it a boon or a bane?</p>