Advertisement
Guest User

new(1)

a guest
Apr 26th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from turtle import*
  2. shape("turtle")
  3. pensize(5)
  4. pencolor("red")
  5. speed("slowest")
  6. while True:
  7.    x=textinput("Direction : ","Tape left/right")
  8.    y=int(textinput("Angle : ","Tape the angle :"))
  9.    z=int(textinput("Distance :","Tape the distance :"))
  10.    if x=="left":
  11.        left(y)
  12.        forward(z)
  13.    else:
  14.        right(y)
  15.        forward(z)
  16.    ans=textinput("Continue : ","Yes/No")    
  17.    if (ans=="n")or(ans=="N"):
  18.        break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement