Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

turtle star python

# import turtle library
import turtle             
polygon = turtle.Turtle()
my_num_sides = 6
my_side_length = 70
my_angle = 360.0 / my_num_sides
for i in range(my_num_sides):
   polygon.forward(my_side_length)           
   polygon.right(my_angle) 
turtle.done()
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #turtle #star #python
ADD COMMENT
Topic
Name
8+9 =