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() franklin.shape('turtle') No, stay out of this
franklin = turtle.Turtle() franklin.shape('turtle') franklin.color('green')
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)
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)
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()
franklin.color('green') franklin.forward(100) franklin.left(90) franklin.up() franklin.forward(100) franklin.right(90) franklin.down() franklin.forward(100) turtle.done()
... 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