WARNING: This program has a bug, which means we need to fix it! This bug is a logic error.

RULE: We must use the parameter variable names in the functions we write. Then we can pass arguments into the function when we call it. In this function, we want the turtle to draw a green hexagon.

  • Click Run and watch the stage to see what is wrong.
  • Use the parameter name color in the .set_color() command so that the turtle draws a green hexagon.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE