Answer: Turtle Challenge #331

Here’s what the code from Turtle Challenge #331 draws. This picture was made by running the code for real.

The drawing made by turtle challenge 331.
What the turtle drew.

The answers

How many points will the star have? 24 points. The turtle draws 24 lines and makes a sharp point at every turn.

How far does the turtle turn altogether? 24 × 105 = 2520 degrees. That’s 7 whole turns, so the star closes up neatly.

How the code works

Turning by a big angle like 105 degrees makes the turtle cross back over its own lines, which makes a star instead of a plain shape. Because 24 × 105 is an exact number of full turns (7), the turtle ends up back at the start.

import turtle

t = turtle.Turtle()
t.speed(0)
t.pensize(3)
t.pencolor("dodgerblue")

for point in range(24):
    t.forward(180)
    t.left(105)

t.hideturtle()
turtle.done()

Try it: Try for point in range(5) with t.left(144). That’s the classic five-pointed star!