turtle.isdown() function in Python (original) (raw)

Last Updated : 29 Aug, 2025

turtle.down() method is used to lower the turtle’s pen, allowing it to draw as it moves. If the pen is already down, the turtle continues drawing.

**Syntax :

turtle.down()

# or

turtle.pendown()

# or

turtle.pd()

Examples

**Example 1: Basic use of pen up and down

Python `

import turtle

turtle.forward(50) turtle.up() turtle.forward(50) turtle.down() turtle.forward(50)

turtle.done()

`

Output:

Output

**Explanation:

**Example 2: Using pen up and down with turns

Python `

import turtle

turtle.forward(50) turtle.right(90) turtle.up() turtle.forward(50) turtle.down() turtle.right(90) turtle.forward(50)

turtle.done()

`

**Output:

Output

**Explanation: