Can I append items to a list that I am looping through in Python?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3752618/python-adding-element-to-list-while-iterating">Python: Adding element to list while iterating</a>  </p>
</blockquote>



<p>This doesn't seem to work, but I am not sure why:</p>

<pre><code>for n in poss:
         poss.append(n+6)
</code></pre>

<p>Is there some rule that says I can't append items to a list that I am currently looping through?</p>
