turtle.write()¶
-
turtle.write(arg, move=False, align='left', font=('Arial', 8, 'normal'))¶ Write text at the current turtle position.
Arguments: arg – info, which is to be written to the TurtleScreen move (optional) – True/False align (optional) – one of the strings “left”, “center” or right” font (optional) – a triple (fontname, fontsize, fonttype)
Write text - the string representation of arg - at the current turtle position according to align (“left”, “center” or right”) and with the given font. If move is True, the pen is moved to the bottom-right corner of the text. By default, move is False.
Example: >>> write(‘Home = ‘, True, align=”center”) >>> write((0,0), True)