Reputation: 51
I need to know how to write words in turtle
I already have tried:
turtle.write('world')
I expect it to print world but it comes with an error.
Here is the error:
NotImplementedError: The `write` function is not currently supported.
I have tried:
import turtle
turtle.write('Hi')
Upvotes: 0
Views: 1508
Reputation: 306
Try using this as a template:
import turtle
turtle.color('deep pink')
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
turtle.hideturtle()
Just edit the text in the brakets to what you want. Also edit the hello to whatever you want. Hopes this Helps!
Upvotes: 1
Reputation:
I know this might seem simple, but have you imported turtle?
If you don't know how imports work, just type import turtle
at the start of your program.
It should look like this:
import turtle
turtle.write('hello')
Upvotes: 0
Reputation: 11
Maybe this?
turtle.write("Hello", font = ("Arial", 12, "bold"))
You could take out "bold" to have a normal hello. The code is
turtle.write("Hello", font = ("Arial", 12))
Upvotes: 1