title: Create list of square powers of numbers in range using generator
body: <p>I'd like to rewrite this part of code using generator :</p>
  
  <pre><code>basic = []
  for x in range(0,11):
      basic.append(x**2)
  </code></pre>
  
  <p>How can I do this ? Tried :</p>
  
  <pre><code>basic.append(x**2 for x in range(0,11))
  </code></pre>
  
  <p>but it raises syntax error in <code>x**2</code> part.</p>