display text in turtle window code example

Example 1: how to add text in python turtle

import turtle

turtle.color(' black')
style = ('Arial', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
turtle.hideturtle()

Example 2: with font type stuff python turtle

import turtle

pen = turtle.Turtle()

pen.write("Python is cool", font=("Calibri", 8, "bold"))

Example 3: turtle write

turtle.write(arg, move=False, align="left", font=("Arial", 8, "normal"))