Thursday, June 18, 2026
HomeLanguagesturtle.write() function in Python

turtle.write() function in Python

The turtle module provides turtle graphics primitives, in both object-oriented and procedure-oriented ways. Because it uses Tkinter for the underlying graphics, it needs a version of Python installed with Tk support.

turtle.write()

This function is used to write text at the current turtle position. 

Syntax :

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

Parameters:

Arguments                Description                                                                                 
arg Info, which is to be written to the TurtleScreen
move True/False
align One of the strings “left”, “center” or right”
font A tuple (fontname, fontsize, fonttype)

Below is the implementation of the above method with some examples :

Example 1 :

Python3




# import package
import turtle
 
# write text
turtle.write("GeeksForGeeks")


 
 

Output :

 

 

Example 2 :

 

Python3




# import package
import turtle
 
# write text
# move turtle
turtle.write("GeeksForGeeks", move=True)


Output :

Example 3 :

Python3




# import package
import turtle
 
# write text
# styling font
turtle.write("GeeksForGeeks", font=("Verdana",
                                    15, "normal"))


Output :

Example 4 :

Python3




# import package
import turtle
 
# write text
# align at right
turtle.write("GeeksForGeeks", align="right")


 
 

Output :

 

 

RELATED ARTICLES

3 COMMENTS

Most Popular

Dominic
32516 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6898 POSTS0 COMMENTS
Nicole Veronica
12014 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6965 POSTS0 COMMENTS