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 from the screen. Do not move state and position of the turtle as well as drawings of other turtles are not affected. It doesn’t require any argument.
Syntax : turtle.clear()
Parameters : None
Returns : Nothing
Below is the implementation of above method with some examples :
Example 1 :
Example 2 :
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