turtle.showturtle() 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.
turtle.showturtle()
This method is used to makes the turtle visible. It doesn’t require any argument.
Syntax:
turtle.showturtle()
or
turtle.st()
Below is the implementation of the above method with an example :
Example:
Python3
import turtle
turtle.speed( 1 )
turtle.forward( 100 )
turtle.right( 90 )
turtle.hideturtle()
turtle.forward( 100 )
turtle.right( 90 )
turtle.forward( 100 )
turtle.right( 90 )
turtle.showturtle()
turtle.forward( 100 )
turtle.right( 90 )
|
Output :
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...