File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,10 @@ Turtle graphics is a popular way for introducing programming to kids. It was
1818part of the original Logo programming language developed by Wally Feurzig and
1919Seymour Papert in 1966.
2020
21- Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it the
21+ Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an `` import turtle ``, give it the
2222command ``turtle.forward(15) ``, and it moves (on-screen!) 15 pixels in the
2323direction it is facing, drawing a line as it moves. Give it the command
24- ``turtle.left (25) ``, and it rotates in-place 25 degrees clockwise.
24+ ``turtle.right (25) ``, and it rotates in-place 25 degrees clockwise.
2525
2626.. sidebar :: Turtle star
2727
Original file line number Diff line number Diff line change 2727kids. It was part of the original Logo programming language developed
2828by Wally Feurzig and Seymour Papert in 1966.
2929
30- Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it
30+ Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
3131the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
3232the direction it is facing, drawing a line as it moves. Give it the
33- command turtle.left (25), and it rotates in-place 25 degrees clockwise.
33+ command turtle.right (25), and it rotates in-place 25 degrees clockwise.
3434
3535By combining together these and similar commands, intricate shapes and
3636pictures can easily be drawn.
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ Turtle graphics is a popular way for introducing programming to
77kids. It was part of the original Logo programming language developed
88by Wally Feurzig and Seymour Papert in 1966.
99
10- Imagine a robotic turtle starting at (0, 0) in the x-y plane. Give it
10+ Imagine a robotic turtle starting at (0, 0) in the x-y plane. After an ``import turtle``, give it
1111the command turtle.forward(15), and it moves (on-screen!) 15 pixels in
1212the direction it is facing, drawing a line as it moves. Give it the
13- command turtle.left (25), and it rotates in-place 25 degrees clockwise.
13+ command turtle.right (25), and it rotates in-place 25 degrees clockwise.
1414
1515By combining together these and similar commands, intricate shapes and
1616pictures can easily be drawn.
You can’t perform that action at this time.
0 commit comments