Example #1
0
Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> import turtle
>>> yp7=turtle.Turtle()
>>> t=200
>>> b=-200
>>> #draw A
>>> turtle.hideturtle()
>>> yp7.pendown()
>>> yp7.goto(-1000,0)
>>> yp7.penup()
>>> a,c=yp7.pos()
>>> yp7.goto(a,c)
>>> yp7.pendown()
>>> yp7.goto(a+100,c+300)
>>> yp7.goto(a+200,c)
>>> yp7.goto(a+30,c+100)
>>> yp7.goto(a+300,c+100)
t
>>> turtle.manloop()
Python 3.6.5 (default, Apr  1 2018, 05:46:30)
Example #2
0
b = -200

#draw the letter ‘A’

turtle.hideturtle() # this hides the arrow of the turtle called turtle


yp7.pendown()


yp7.goto(0,0)


yp7.penup()

a,c = yp7.pos()

yp7.goto(a,c)

yp7.pendown()
yp7.goto(a+100, c+300)
yp7.goto(a+200, c)
yp7.penup()
yp7.goto(a+30, c+100)
yp7.pendown()

yp7.goto(a+180, c+100)

turtle.manloop() # all turtle commands must go before this line!!!

Example #3
0
##In order complete this challenge you need to debug the following code.
##It may be easier to do so if you improve the code quality.

import turtle

yp7 = turtle.Turtle()
t = 200
b = -200

#draw A

turtle.hideturtle()

yp7.penup()

a, c = yp7.pos()

yp7.goto(a, c)

yp7.pendown()
yp7.goto(a + 100, c + 300)
yp7.goto(a + 200, c)
yp7.penup()
yp7.goto(a + 30, c + 100)
yp7.pendown()

yp7.goto(a + 175, c + 100)

turtle.manloop()