import turtle
# Create a turtle screen
screen = turtle.Screen()
# Create a turtle object
t = turtle.Turtle()
# Set the pen color to blue
t.pencolor("purple")
# Set the turtle speed
t.speed(1)
# Draw a blue line
t.forward(100) # Adjust the length as needed
# Close the screen on click
screen.exitonclick()
To embed this program on your website, copy the following code and paste it into your website's HTML: