turtle.showturtle() 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.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

filter_none

edit
close

play_arrow

link
brightness_4
code

# import package
import turtle
  
# set speed to slowest for
# better understandings
turtle.speed(1)
  
# motion
turtle.forward(100)
turtle.right(90)
  
# hide the turtle
turtle.hideturtle()
  
# motion
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
  
# show the turtle
turtle.showturtle()
  
# motion
turtle.forward(100)
turtle.right(90)

chevron_right


Output :

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.