Sunday, July 5, 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

3 COMMENTS

Most Popular

Dominic
32519 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6900 POSTS0 COMMENTS
Nicole Veronica
12015 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12110 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6967 POSTS0 COMMENTS