turtle.mode() function in Python Last Updated : 19 Dec, 2023 Comments Improve Suggest changes Like Article Like Report 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.mode() This function is used to set turtle-mode ('standard', 'logo' or 'world') and perform reset. Syntax : turtle.mode(mode=None) Parameter: mode: one of the strings 'standard', 'logo' or 'world' Mode 'standard' is compatible with turtle.py.Mode 'logo' is compatible with most Logo-Turtle-Graphics.Mode 'world' uses userdefined 'worldcoordinates'. Below is the implementation of the above method with some examples : Example 1 : Python3 # importing package import turtle # check by default value print(turtle.mode()) Output : standard Example 2 : Python3 # importing package import turtle # motion with default mode (standard) # default direction of turtle head # is east in standard mode turtle.forward(180) # set mode to 'logo' mode turtle.mode(mode='logo') # do some motion # default direction of turtle head # is north in logo mode turtle.forward(120) # set mode to 'world' mode turtle.mode(mode='world') # do some motion turtle.forward(100) # set coordinates of the turtle # mode (world) by choice of user turtle.setworldcoordinates(-500,-500,500,500) Output : Comment More infoAdvertise with us Next Article turtle.mode() function in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads turtle.onkey() 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.onkey() This function is used to bind fun to the key-release event of the ke 1 min read turtle.isdown() 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.isdown() This method is used to check whether the turtle is down or not. It 1 min read turtle.onclick() 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.onclick() This function is used to bind fun to a mouse-click event on this t 1 min read turtle.dot() 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.dot()This function is used to draw a circular dot with a particular size, wi 2 min read turtle.numinput() 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.numinput() This function is used to pop up a dialog window for the input of 1 min read Like