turn right
play

Turn Right Walk forward 100 pixels Start Here Walk Forward Turn - PowerPoint PPT Presentation

Turn Right Walk forward 100 pixels Start Here Walk Forward Turn Left and 100 pixels walk forward 200 pixels import turtle franklin = turtle.Turtle() franklin = turtle.Turtle() franklin.shape('turtle') franklin = turtle.Turtle()


  1. Turn Right Walk forward 100 pixels Start Here Walk Forward Turn Left and 100 pixels walk forward 200 pixels

  2. import turtle franklin = turtle.Turtle()

  3. franklin = turtle.Turtle() franklin.shape('turtle')

  4. franklin = turtle.Turtle() franklin.shape('turtle') No, stay out of this

  5. franklin = turtle.Turtle() franklin.shape('turtle') franklin.color('green')

  6. franklin.shape('turtle') franklin.color('green') franklin.forward(100) franklin.left(90) franklin.color('blue') franklin.forward(100) franklin.right(90) franklin.color('red') franklin.forward(100)

  7. franklin.shape('turtle') franklin.color('green') franklin.forward(100) franklin.left(90) franklin.color('blue') franklin.forward(100) franklin.right(90) franklin.color('red') franklin.forward(100)

  8. import turtle franklin = turtle.Turtle() franklin.shape('turtle') franklin.color('green') franklin.forward(100) franklin.left(90) franklin.color('blue') franklin.pensize(5) franklin.forward(100) franklin.right(90) franklin.pensize(9) franklin.color('red') franklin.forward(100) turtle.done()

  9. franklin.color('green') franklin.forward(100) franklin.left(90) franklin.up() franklin.forward(100) franklin.right(90) franklin.down() franklin.forward(100) turtle.done()

  10. ... franklin.left(2) franklin.forward(3) franklin.left(2) franklin.forward(3) franklin.left(2) franklin.forward(3) ... Over and over and over

Recommend


More recommend