main.py316 chars18 lines
In this code, we first import the turtle module and create a turtle object. Then, we use the penup()
method to lift the turtle's pen so that it doesn't draw as it moves to a starting position for the text. We set the position to (-50, 50) with the goto()
method.
Next, we use the write()
method to write the text "Hi, how are you?" with a specified font.
Finally, we use the hideturtle()
method to hide the turtle's appearance, and the turtle.done()
function to keep the window open until it is manually closed.
gistlibby LogSnag