what is the code for this shape
First, you need to find the interior angles. Using (n-2)*180/n: 1 interior angle is 108 degrees. So using a for loop:
# blah blah setup code for i in range(1,5): turtle.forward(100) turtle.left(108)
pentagon
what is the code for this shape
First, you need to find the interior angles.
Using (n-2)*180/n: 1 interior angle is 108 degrees.
So using a for loop: