Skip to content
pentagon
Profile icon
AlexOConnor

what is the code for this shape

You are viewing a single comment. View All
Profile icon
ash15khng

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)