turtle.up() method lift the pen off the drawing surface. When the pen is up, the turtle can move around without drawing anything. This is useful when you want to reposition the turtle without leaving a trace or create separate shapes at different points on the canvas.
Syntax:
turtle.up()
# or
turtle.pu()
# or
turtle.penup()
- Parameters: None
- Return Value: None
Examples
Example 1: Moving Without Drawing
import turtle
turtle.forward(50)
turtle.up()
turtle.forward(50)
turtle.down()
turtle.forward(50)
turtle.done()
Output:

Explanation: The turtle first draws a 50-unit line, then moves another 50 units without drawing (up()), and finally resumes drawing with down().
Example 2 : Using pen up with turns
import turtle
turtle.forward(50)
turtle.right(90)
turtle.up()
turtle.forward(50)
turtle.down()
turtle.right(90)
turtle.forward(50)
turtle.done()
Output:

Explanation: The pen is lifted to move to a new position without leaving a line, then lowered again to continue drawing.