turtle.getshapes() function in Python Last Updated : 23 Jul, 2020 Summarize Suggest changes Share 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.getshapes() This function is used to return a list of names of all currently available turtle shapes. It doesn't require any argument. Syntax : turtle.getshapes() Below is the implementation of the above method with some examples : Example 1 : Python3 # import package import turtle print(turtle.getshapes()) Output : ['arrow', 'blank', 'circle', 'classic', 'square', 'triangle', 'turtle'] Example 2 : Python3 # import package import turtle shapes = turtle.getshapes() # set speed to slowest turtle.speed(1) # draw all shapes for i in range(len(shapes)): # shape turtle.shape(shapes[i]) # motion turtle.forward(100) turtle.right(51.42) turtle.stamp() Output : Advertise with us Next Article turtle.getpen() function in Python D deepanshu_rustagi Follow Similar Reads turtle.getpen() 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.getpen() This function is used to return the Turtleobject itself. It doesn't 1 min read turtle.getscreen() 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.getscreen() This function is used to Return the TurtleScreen object, the tur 1 min read turtle.home() 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.home() This function is used to move the turtle to the origin i.e. coordinat 1 min read turtle.get_poly() function in Python he 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.get_poly() This function is used to return the lastly recorded polygon. It do 1 min read turtle.heading() 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.heading() This function is used to return the turtle's current heading. It d 1 min read turtle.hideturtle() 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.hideturtle() This method is used to make the turtle invisible. It's a good i 1 min read Article Tags : Python Python-turtle Practice Tags : python Like