Spiral

Chris nospam at [127.0.0.1]
Fri May 31 05:20:32 EDT 2002


In article <Xns921F591C76053duncanrcpcouk at 127.0.0.1>, Duncan Booth 
<duncan at NOSPAMrcp.co.uk> writes
>Chris <nospam@[127.0.0.1]> wrote in news:oVFhzeC$Vy98Ewkp@[127.0.0.1]:
>> Thanks - and thanks to others who replied, too.
>> I'm totally new to Python and so I'll have to experiment a bit -
>> but does your program work with the standard Python package or do I have
>> to get some add-ons?  (It's the "import" that made me wonder.)

>My example works with the standard Python 2.2.x provided you use a version
>that comes with Tkinter (most do including the standard Windows
>distribution). The easiest way to run it is to run the 'Idle' gui that also
>comes as part of the normal distribution.
>The 'turtle' module is part of the standard library: almost everything in
>Python lives in a module and has to be imported before you can use it: even
>the cos and sin functions I used were imported from turtle (which in turn
>had imported them from math).

I tried your program and it worked - although it didn't do the same as 
my QBASIC program.  Yours simply drew a fairly open spiral - not a tight 
one giving the moiré patterns.  Did you get them?
(I probably made some elementary mistake!)
-- 
Chris



More information about the Python-list mailing list