Re: Drawing polygons in python turtle

2014-02-11 Thread Terry Reedy
On 2/10/2014 10:01 PM, genius...@gmail.com wrote: Is there a better way of drawing such as another modules Logo is a drawing language designed for kids who do not know geometry but can imagine walking around on a dirt field and occasionally turning while dragging a stick or dripping paint.

Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Hi can anyone help finding the angle to draw different polygons shapes in this example import turtle wm = turtle.Screen() alex = turtle.Turtle() for i in range(5): alex.left(216) alex.forward(50) wm.exitonclick() Why do we use 216 --

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 1:44:28 AM UTC+2, geni...@gmail.com wrote: Hi can anyone help finding the angle to draw different polygons shapes in this example import turtle wm = turtle.Screen() alex = turtle.Turtle() for i in range(5): alex.left(216) alex.forward(50)

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 2:23:11 AM UTC+2, Asaf Las wrote: On Tuesday, February 11, 2014 1:44:28 AM UTC+2, geni...@gmail.com wrote: Hi can anyone help finding the angle to draw different polygons shapes in this example import turtle wm = turtle.Screen() alex =

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Well how about the star of david what are the angles -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 4:13:16 AM UTC+2, geni...@gmail.com wrote: Well how about the star of david what are the angles hexagon is not constructed similar to your program for pentagon because crossing path can't jump from one triangle to another. you have 60 degrees turn after 2 turns

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
so does that mean i have to draw two separate triangles -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 4:51:56 AM UTC+2, geni...@gmail.com wrote: so does that mean i have to draw two separate triangles If you need view of crossing triangles - yes, this is the simplest recipe. -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Is there a better way of drawing such as another modules -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 5:01:33 AM UTC+2, geni...@gmail.com wrote: Is there a better way of drawing such as another modules Could you please elaborate with question? What do you mean? -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
A better way to draw stuff on screen -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread geniusrko
Going off-topic Which resource do you recommend for learning this wonderful language -- https://mail.python.org/mailman/listinfo/python-list

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 5:06:11 AM UTC+2, geni...@gmail.com wrote: A better way to draw stuff on screen It depends on particular case/figure you wish to draw. Drawing is separate knowledge field with its own set of algorithms. Geometry is field of wonders. i never dealt with this stuff

Re: Drawing polygons in python turtle

2014-02-10 Thread Asaf Las
On Tuesday, February 11, 2014 5:19:52 AM UTC+2, geni...@gmail.com wrote: Going off-topic Which resource do you recommend for learning this wonderful language My advice won't be good as mentioned before i never dealt with it. You have chance to discover that country yourself or wait for advice