turtle.isvisible() function in Python (original) (raw)
Last Updated : 29 Aug, 2025
The turtle.isvisible() method is used to check whether the turtle is currently visible on the canvas. It returns True if the turtle is shown and False if it is hidden. This method does not require any arguments.
**Syntax:
turtle.isvisible()
- **Parameters: This method does not take any arguments.
- **Returns: Boolean( True ) if the turtle is visible, False if hidden.
**Example:
Python `
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
**Explanation:
- Initially, the turtle is visible, so turtle.isvisible() returns True.
- After calling **turtle.ht(), the turtle is hidden, so further calls to **isvisible() return False.
- When **turtle.st() is called, the turtle becomes visible again and **isvisible() returns True.