web123456

Python brush case-012 Drawing hollow T-character

""" Hollow T-word.py """ import turtle # Import the Turtle Module turtle.pensize(2) # Set the thickness of the turtle brush to 2 turtle.setheading(90) # Set the direction to 90 degrees turtle.color('black') # Set the color to black turtle.bgcolor('light cyan') # Set the background color to light cyan turtle.fd(50) # Advance 50 units turtle.rt(90) # Turn right 90 degrees turtle.fd(150) # Advance 150 units turtle.rt(90) # Turn right 90 degrees turtle.fd(50) # Advance 50 units turtle.rt(90) # Turn right 90 degrees turtle.fd(50) turtle.lt(90) turtle.fd(100) turtle.rt(90) turtle.fd(50) turtle.rt(90) turtle.fd(100) turtle.lt(90) turtle.fd(50) turtle.ht() # Hide turtle turtle.done() # The turtle is finished