Create a latter V in Python




import turtle 

turtle.Screen().bgcolor("black")

t = turtle.Turtle()
t.speed(10)
t.pensize(10)
t.penup()

def drawV():
 t.setposition(30,-110)
 t.pendown()
 t.begin_fill()
 t.color("green")
 t.pensize(10)
 t.pencolor("white")
 t.backward(23)
 t.forward(123)
 t.left(60)
 t.forward(220)
 t.right(60)
 t.forward(100)
 t.right(117)
 t.forward(710)
 t.right(63)
 t.forward(110)
 t.right(90)
 t.forward(630)
 t.right(90)
 t.forward(100)
 t.right(90)
 t.forward(200)
 t.end_fill()
 t.penup()
 
drawV() 

turtle.done()

Post a Comment

0 Comments