Re: [Tutor] Problem with turtle

2010-03-12 Thread Marco Rompré
The thing is that the teacher wanted us to use a while loop like in the notes but even in the notes I copied the code and it was not working either. Now, I'm more on the right track, I am able to draw the forms and the counter is almost working, the reason I say that is because turtle is doin what

Re: [Tutor] Problem with turtle

2010-03-11 Thread Alan Gauld
"Marco Rompré" wrote turtle was drawing a yellow square then it was drawing a triangle on the sqare but with no lines whatsovever You'll need to put the pen down() again for it to draw the lines... like it was just going over it and the last problem was that it was never stopping Thats be

Re: [Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
It does not work either with the for n in range (10): On Thu, Mar 11, 2010 at 2:53 PM, Vern Ceder wrote: > Ooops... missed a closing parenthese... that should be: > > > for n in range(10): > > > Vern Ceder wrote: > >> It looks like the indentation of n = n + 1 is wrong - it will be outside >

Re: [Tutor] Problem with turtle

2010-03-11 Thread Vern Ceder
Ooops... missed a closing parenthese... that should be: for n in range(10): Vern Ceder wrote: 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. Instead of a while loop I would suggest a

Re: [Tutor] Problem with turtle

2010-03-11 Thread Vern Ceder
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. Instead of a while loop I would suggest a for loop: for n in range(10: HTH, Vern Marco Rompré wrote: I wanted turtle to draw alternative

Re: [Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
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

Re: [Tutor] Problem with turtle

2010-03-11 Thread spir
On Thu, 11 Mar 2010 10:11:28 -0500 Marco Rompré wrote: > Hi! I am relatively new to python and turtle and I really need your help. > > Here what I wanted turtle to do: I created a function named carré which > would draw a square with 3 different parameters (color, size, angle). >

Re: [Tutor] Problem with turtle

2010-03-11 Thread Alan Gauld
"Marco Rompré" wrote Hi! I am relatively new to python and turtle and I really need your help. Thats what we are hee for but Here's my code: ignore my comments n=0 while n < 10 : down() # abaisser le crayon carre(25, 'yellow', 0) # tracer un carr

[Tutor] Problem with turtle

2010-03-11 Thread Marco Rompré
Hi! I am relatively new to python and turtle and I really need your help. Here what I wanted turtle to do: I created a function named carré which would draw a square with 3 different parameters (color, size, angle). I did the same for a function named