title: Constructing Lists
body: <p>I'm new to Python and I came across the following query. Can anyone explain why the following:</p>
  
  <pre><code>[ n**2 for n in range(1, 6)]
  </code></pre>
  
  <p>gives:</p>
  
  <pre><code>[1, 4, 9, 16, 25]
  </code></pre>