title: Python 3.2 idle : range function - print or list?
body: <p>I know this is wrong thing to do, but I am using python 3 but studying it with python 2 book.</p>
  
  <p>it says,</p>
  
  <pre><code>&gt;&gt;&gt;range(2,7)
  </code></pre>
  
  <p>will show </p>
  
  <pre><code>[2,3,4,5,6]
  </code></pre>
  
  <p>but I know it won't show the output above, THAT I figured. so I tried:</p>
  
  <pre><code>&gt;&gt;&gt;&gt;print(range(2,7))
  </code></pre>
  
  <p>and ta-da- it shows follow:</p>
  
  <pre><code>range(2,7)
  </code></pre>
  
  <p>looks like this is the one of changes from P2 to P3 so I tried:</p>
  
  <pre><code>list(range(2,7))
  </code></pre>
  
  <p>this one works ok on IDLE but not ok on notepad for long coding. so finally I tried:</p>
  
  <pre><code>print(list(range(2,7)))
  </code></pre>
  
  <p>and it showed something similar to what I intended... Am I doing right? Is this the only way to write it?</p>