Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import*
- shape("turtle")
- pensize(5)
- pencolor("red")
- speed("slowest")
- while True:
- x=textinput("Direction : ","Tape left/right")
- y=int(textinput("Angle : ","Tape the angle :"))
- z=int(textinput("Distance :","Tape the distance :"))
- if x=="left":
- left(y)
- forward(z)
- else:
- right(y)
- forward(z)
- ans=textinput("Continue : ","Yes/No")
- if (ans=="n")or(ans=="N"):
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement