Thursday, May 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

1 COMMENT

Most Popular

Dominic
32514 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6892 POSTS0 COMMENTS
Nicole Veronica
12012 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12107 POSTS0 COMMENTS
Shaida Kate Naidoo
7016 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6975 POSTS0 COMMENTS
Umr Jansen
6963 POSTS0 COMMENTS