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 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 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 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 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

Boxes of O's

2014-03-01 Thread geniusrko
Hi Can anyone help with this problem Create a big box out of n rows of little o's for any desired size n. Use an input statement to allow the user to enter the value for n and then print the properly sized box. E.g. n = 3 oo oo oo

Re: Boxes of O's

2014-03-01 Thread geniusrko
Well, This is what i got n = int(input(enter number of o: )) for i in range(n): print(O, end = '') for j in range(n* 2): print(O, end = '') print() -- https://mail.python.org/mailman/listinfo/python-list

Re: Boxes of O's

2014-03-02 Thread geniusrko
I agree with you and really appreciate your experience. But what I was looking for is clues. Thank you anyway -- https://mail.python.org/mailman/listinfo/python-list