How it works
Forward moves the turtle ahead and draws a line. Right turns the turtle on the spot, in degrees.
Ninety degrees is a quarter circle, like the corner of a book.
A loop draws the sides. The number in range is the number of sides.
Walking all the way round is one full circle, 360 degrees, and the turns share it out: each turn is 360 divided by the number of sides.