cg left 17 repeat 10 [csquare 120 right 4] left 23 How did I work out the "17"? I didn't - I just kept changing it till it looked ok. Notice how the "lefts" (17 + 23 = 40) cancel out the "rights" (10 x 4 = 40) so the turtle gets safely home.