turtle.clearstamps() method in Python Last Updated : 21 Jul, 2020 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.clearstamps() The turtle.clearstamps() method is used to delete all or first/last n of turtle's stamps. This method requires an argument of an integer. So, the n stamps made are cleared by it. Syntax : turtle.clearstamps(n=None) Optional argument: n -- an integer If n is None, delete all of pen's stamps,else if n > 0 delete first n stampselse if n < 0 delete last n stamps. Below is the implementation of the above method with some examples : Example 1 : Python3 # import package import turtle # set turtle speed to slowest # for better understandings turtle.speed(1) # motion with stamps turtle.forward(50) turtle.stamp() turtle.forward(50) turtle.stamp() turtle.forward(50) turtle.stamp() # hide the turtle to # clarify stamps turtle.ht() # clear the all stamps turtle.clearstamps() Output : Example 2 : Python3 # import package import turtle # loop to create motion # with stamps for i in range(12): # motion turtle.forward(50) # stamp turtle.stamp() turtle.right(30) # hide the turtle for # better understandings turtle.ht() # clear the first 8 stamps turtle.clearstamps(8) Output : Comment More infoAdvertise with us Next Article turtle.clearstamps() method in Python D deepanshu_rustagi Follow Improve Article Tags : Python Python-turtle Practice Tags : python Similar Reads turtle.clearstamp() method 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.clearstamp() The turtle.clearstamp() method is used to delete all or first/l 2 min read turtle.color() method in Python turtle.color() method is a function of the turtle module in Python used to change the color of the turtleâs pen and fill. It allows us to customize the appearance of shapes drawn by the turtle by specifying colors using color names, RGB values, or hex codes.Syntaxturtle.color(*args)The *args allows 3 min read turtle.backward() method 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.backward() The turtle.backward() method is used to move the turtle backward 1 min read turtle.down() method 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.down() The turtle.down() method is used to pull back the pen down on the scr 1 min read turtle.left() method 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.left() The turtle.left() method is used to change the direction of the turtl 2 min read Like