Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

turtle.reset() function in Python

  • Last Updated : 28 Jul, 2020

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.


This function is used to delete the turtle’s drawings and restore its default values. It doesn’t require any argument.

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course

Syntax :


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

Example 1 :


# import package
import turtle
# motion
for i in range(20):
# reset the work

Output :


Example 2 :


# import package
import turtle
# make turtle objects
# and set position
t1 = turtle.Turtle()
t2 = turtle.Turtle()
t1.setpos(-70, 0)
t2.setpos(70, 0)
# loop for pattern
for i in range(20):
# reset first turtle
# another remain as it is

Output :

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!