Thursday, February 19, 2026
HomeLanguagesturtle.isdown() function in Python

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

This method is used to check whether the turtle is down or not. It doesn’t require any argument and return a boolean value as True if the pen is down, False if it’s up. 

Syntax :

turtle.isdown()

Below is the implementation of the above method :

Python3




# import package
import turtle 
  
  
# to check
print(turtle.isdown())
turtle.forward(10)
  
# up the turtle
turtle.up()
  
# to check
print(turtle.isdown())
  
# up the turtle
turtle.down()
turtle.forward(10)
  
# to check
print(turtle.isdown())


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
32506 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6882 POSTS0 COMMENTS
Nicole Veronica
12005 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12099 POSTS0 COMMENTS
Shaida Kate Naidoo
7011 POSTS0 COMMENTS
Ted Musemwa
7255 POSTS0 COMMENTS
Thapelo Manthata
6967 POSTS0 COMMENTS
Umr Jansen
6956 POSTS0 COMMENTS