Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. def move():
  2.     direction = input("Go left or right? ")
  3.     if direction == "left":
  4.         tortue.left(60)
  5.         tortue.forward(50)
  6.     if direction == "right":
  7.         tortue.right(60)
  8.         tortue.forward(50)
  9. def left():
  10.     tortue.left(60)
  11.     tortue.forward(50)
  12. def right():
  13.     tortue.right(60)
  14.     tortue.forward(50)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement