Skip to content

Instantly share code, notes, and snippets.

@amontalenti
Last active February 10, 2016 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amontalenti/d3d3725fc04283e2bce3 to your computer and use it in GitHub Desktop.
Save amontalenti/d3d3725fc04283e2bce3 to your computer and use it in GitHub Desktop.
import turtle
t = turtle.Turtle()
t.color('orange')
# self-test
t.left(180)
t.left(-180)
# this is a U
t.right(90)
t.forward(150)
t.left(90)
t.forward(50)
t.forward(50)
t.left(90)
t.forward(150)
t.right(90)
t.penup()
t.forward(20)
# this is a V
t.pendown()
t.right(90)
t.left(50)
t.right(20)
t.forward(150)
t.left(90)
t.left(40)
# fix a bug
#t.forward(150)
#t.backward(150)
t.forward(150)
t.right(70)
# fix another bug
#t.forward(150)
#t.backward(150)
t.penup()
t.forward(20)
# this is an A
t.pendown()
t.right(90)
t.forward(150)
t.backward(150)
t.left(90)
t.forward(40)
t.right(90)
t.forward(150)
t.backward(75)
t.left(90)
t.right(180)
t.forward(40)
# wait a few seconds to soak it in
import time
time.sleep(5)
@amontalenti
Copy link
Author

This is what it draws:

selection_2016-02-10-003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment