title: Generator expressions vs. list comprehensions
body: <p>When should you use generator expressions and when should you use list comprehensions in Python?</p>
  
  <pre><code># Generator expression
  (x*2 for x in range(256))
  
  # List comprehension
  [x*2 for x in range(256)]
  </code></pre>