Artificial intelligent assistant

How would I find the lengths of the sides of a regular pentagram if given the perimeter of the circle that the pentagram is inscribed to? For a Turtle program in Python that I am working on, I will need to draw out a star. This star is a regular pentagram, meaning that each of the sides are of equal length. As well, the pentagram is inscribed into a circle with the perimeter of 15.625. However, I don't know the lengths of the sides of the star, and I am not sure how to use the circle's perimeter to get the sides of the star. So, what would the length of the sides of the star be, and what steps would I take to get it?

The chord that is one side of the pentagram subtends an angle of $\frac {4\pi}5$. If you draw the radii to the endpoints of the chord and a radius that bisects the chord you get two right triangles. The hypotenuse is the radius of the circle, $\frac {15.625}{2\pi}$. The angle of the triangle at the center is $\frac {2\pi}5$. The side opposite the angle at the center, which is half the chord, is $\frac {15.625}{2\pi}\sin \left(\frac {2\pi}5\right).$ The chord is twice this, $\frac {15.625}{\pi}\sin \left(\frac {2\pi}5\right)\approx 4.73.$

![enter image description here](

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 284c74db5b46d66c30f18a15cf9d0feb