Python Turtle - Answer Key

The below 3 lines are needed for the introduction activity and all the other activities as well.

import turtle
turtle.color("orange")
turtle.shape("turtle")

Introduction Activity

turtle.color("orange")
turtle.forward(50)

Activity 1

turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)
turtle.forward(50)
turtle.left(90)

Activity 2

for i in range(4):
  turtle.forward(50)
  turtle.left(90)

Activity 3

for i in range(6):
  turtle.forward(50)
  turtle.left(60)

Activity 4

def draw_hexagon():
  for i in range(6):
    turtle.forward(50)
    turtle.left(60)

draw_hexagon()

Activity 5

def draw_honeycomb():
  for i in range(6):
    draw_hexagon()
    turtle.forward(50)
    turtle.right(60)

draw_honeycomb()

Activity 6

turtle.penup()
turtle.goto(300, 300)
turtle.pendown()

Activity 7

def figure_8():
  turtle.circle(50)
  turtle.circle(-50)

figure_8()

Activity 8

def mandala_flower():
  for i in range(35):
    figure_8()
    turtle.right(10)

mandala_flower()

Activity 9

def mandala_flower():
  turtle.color(30, 100, 160)
  for i in range(35):
    figure_8()
    turtle.right(10)

mandala_flower()

Activity 10

def mandala_flower():
  for i in range(35):
    turtle.color(random.randint(0, 256),random.randint(0, 256), random.randint(0, 256)) 
    figure_8()
    turtle.right(10)

mandala_flower()