Ian D wrote:
> Anyway thanks. I wondered why array was being mentioned ha ha
> So have I got this correct in that when I run a turtle program I am in
> fact using this forever loop, so I do not need to use a while True loop at
> all really in a turtle gui program?
Yes.
__
a turtle gui program?
> To: tutor@python.org
> From: __pete...@web.de
> Date: Tue, 11 Feb 2014 14:01:47 +0100
> Subject: Re: [Tutor] can I make a while loop true again
>
> Ian D wrote:
>
>> Thanks for the help on the last one.
>>
>> Is it possible to res
Peter Otten wrote:
> As a bonus the turtle changes its direction when you hit the left or right
> array.
I think "arrow" and my fingers decide they'd rather write "array". I'll
start proof-reading of these days...
___
Tutor maillist - Tutor@python.o
Ian D wrote:
> Thanks for the help on the last one.
>
> Is it possible to restart a while loop? This doesn't work at all (surprise
> surprise)
>
> import turtle as t
>
> def start():
> global more
> more = True
>
> def stop():
> global more
> more = False
>
> more = True
>
Ian D Wrote in message:
> Thanks for the help on the last one.
>
> Is it possible to restart a while loop? This doesn't work at all (surprise
> surprise)
>
> import turtle as t
>
> def start():
> global more
> more = True
>
> def stop():
> global more
> more = False
>
>
On 11/02/14 11:06, Ian D wrote:
Is it possible to restart a while loop?
Sorry, I'm sure you know what you mean but I'm not clear.
What do you mean by "restart a while loop"?
Do you mean after you exited it?
If so put the loop in a function and call the function again.
Do you mean from inside