title: Append to an empty list using a single line for-loop python
body: <p>I am trying to append numbers from a generator to an empty list using a single line for loop but it returns <code>None</code>. I understand it can be done using a for loop with 2 lines but I was wondering what I am missing. i.e., </p>
  
  <p><code>&gt;&gt;&gt; [].append(i) for i in range(10)</code></p>
  
  <p><code>[None, None, None, None, None, None, None, None, None, None]</code></p>
  
  <p>I was hoping to create this in one line:</p>
  
  <p><code>&gt;&gt;&gt; [].append(i) for i in range(10)</code></p>
  
  <p><code>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]</code></p>
  
  <p>Thank you.</p>