<div dir="ltr"><div>and of course there are some test missing as whatever is not even is first declared prime.<br></div>bm<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 8:26 AM, Blanca Mancilla <span dir="ltr"><<a href="mailto:blancalmancilla@gmail.com" target="_blank">blancalmancilla@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>In section 4.4 break and continue Statements and else Clauses in loops, the first program has an issue:<br>
</div>the second for: for x in range(2,n) is not entered in the first iteration of the n for (for n in range(2,10))<br>
</div>as range (2,2) give an empty range:<br><br>>>> range(2,2)<br>[]<br><br></div>therefore 2 is never "declared" prime. <br><br></div>Also the break is in the wrong place. <br><span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888">bm<br></font></span></div>
</blockquote></div><br></div>