It does not work either with the for n in range (10):<br><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 2:53 PM, Vern Ceder <span dir="ltr">&lt;<a href="mailto:vceder@canterburyschool.org">vceder@canterburyschool.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Ooops... missed a closing parenthese... that should be:<div class="im"><br>
<br>
for n in range(10):<br>
     &lt;square and triange code here...&gt;<br>
<br></div><div><div></div><div class="h5">
Vern Ceder wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It looks like the indentation of n = n + 1 is wrong - it will be outside of the while loop and so n will never increment and the loop will never end.<br>
<br>
Instead of a while loop I would suggest a for loop:<br>
<br>
for n in range(10:<br>
    &lt;square and triange code here...&gt;<br>
<br>
HTH,<br>
<br>
Vern<br>
<br>
Marco Rompré wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I wanted turtle to draw alternatively a square and a triangle with a space between them each with a specific color, angle(orientation as you said), size. Instead, turtle was drawing a yellow square then it was drawing a triangle on the sqare but with no lines whatsovever like it was just going over it and the last problem was that it was never stopping and i had to rstart the shell to make it stop.<br>

<br>
I hope I am more precis with my explanations.<br>
<br>
Thanks for helping me learn<br>
<br>
On Thu, Mar 11, 2010 at 1:26 PM, Alan Gauld &lt;<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a> &lt;mailto:<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>&gt;&gt; wrote:<br>

<br>
<br>
    &quot;Marco Rompré&quot; &lt;<a href="mailto:marcodrompre@gmail.com" target="_blank">marcodrompre@gmail.com</a><br>
    &lt;mailto:<a href="mailto:marcodrompre@gmail.com" target="_blank">marcodrompre@gmail.com</a>&gt;&gt; wrote<br>
<br>
<br>
        Hi! I am relatively new to python and turtle and I really need<br>
        your help.<br>
<br>
<br>
    Thats what we are hee for but....<br>
<br>
<br>
        Here&#39;s my code: ignore my comments<br>
<br>
<br>
    n=0<br>
    while n &lt; 10 :<br>
      down()                         # abaisser le crayon<br>
      carre(25, &#39;yellow&#39;, 0)         # tracer un carré<br>
      up()<br>
      forward(30)<br>
      triangle(90, &#39;blue&#39;,0)<br>
    n = n + 1<br>
<br>
<br>
        If I am to vague I wanted to do successfully exercise 7.6 in<br>
        Gérard Swinnen<br>
        tutorial for Python<br>
<br>
        It was supposed to look like this<br>
<br>
<br>
    So what happens? Is there an error message or does it just draw<br>
    the wrong thing? Don&#39;t make us guess...<br>
<br>
<br>
<br>
    --     Alan Gauld<br>
    Author of the Learn to Program web site<br>
    <a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a><br>
<br>
    _______________________________________________<br>
    Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a> &lt;mailto:<a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a>&gt;<br>
    To unsubscribe or change subscription options:<br>
    <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
<br>
<br>
<br>
<br>
-- <br>
Marc-O. Rompré<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
This time for sure!<br>
   -Bullwinkle J. Moose<br>
-----------------------------<br>
Vern Ceder, Director of Technology<br>
Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804<br>
<a href="mailto:vceder@canterburyschool.org" target="_blank">vceder@canterburyschool.org</a>; 260-436-0746; FAX: 260-436-5137<br>
<br>
The Quick Python Book, 2nd Ed - <a href="http://bit.ly/bRsWDW" target="_blank">http://bit.ly/bRsWDW</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Marc-O. Rompré<br><br>