title: Using continue on a generator
body: <p>I'm trying to skip generated items that do not meet certain conditions using the continue function.</p>
  
  <p>If I simply print <code>x</code> I get the full output:</p>
  
  <pre><code>&gt;&gt;&gt; w = [1,4,6,10]
  &gt;&gt;&gt; w2 = ((2 * x) for x in w)
  &gt;&gt;&gt; for x in w2: print x
  ...
  2
  8
  12
  20
  </code></pre>
  
  <p>However, when I try to use <code>continue</code> to not print 8 I get a blank space as the output. </p>
  
  <pre><code>&gt;&gt;&gt; for x in w2:
  ...     if x == 8: continue
  ...     print x
  ...
  &gt;&gt;&gt;
  </code></pre>
  
  <p>I'm trying to get the output of 2, 12, 20 in the second iteration. How do I arrive at the desired output?</p>