Lesson 8 of 51 · Basics
Pen Up & Pen Down
Control whether the turtle draws or just moves.
Python
from turtle import *
forward(150)
penup()
goto(-100, 50)
pendown()
forward(150)
done()Output

1
penup()
Lifts the pen — the turtle moves without drawing.
2
pendown()
Puts the pen back down — the turtle draws again.