Saturday, February 14, 2026
HomeLanguagesturtle.isvisible() function in Python

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

The turtle.isvisible() method is used to return True if the Turtle is shown, False if it’s hidden. This method does not require any argument.

Syntax :

turtle.isvisible()

Below is the implementation of above method for better understandings :

Example 1:

Python3




# import package
import turtle
  
  
# check turtle visibility
print(turtle.isvisible())
  
# motion
turtle.forward(100)
turtle.right(90)
  
# hide the turtle
turtle.ht()
  
# motion
turtle.forward(100)
  
# check turtle visibility
print(turtle.isvisible())
  
# motion
turtle.right(90)
turtle.forward(100)
  
# show the turtle
turtle.st()
  
# check turtle visibility
print(turtle.isvisible())


Output :

True
False
True
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32503 POSTS0 COMMENTS
Milvus
129 POSTS0 COMMENTS
Nango Kala
6880 POSTS0 COMMENTS
Nicole Veronica
12002 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12093 POSTS0 COMMENTS
Shaida Kate Naidoo
7011 POSTS0 COMMENTS
Ted Musemwa
7253 POSTS0 COMMENTS
Thapelo Manthata
6963 POSTS0 COMMENTS
Umr Jansen
6954 POSTS0 COMMENTS