QUESTION IMAGE
Question
you created a pen as an instance of turtle. you drew a line. what does the following line do?
up()
moves all drawings one step up
\lifts\ the pen so you can move it without drawing
moves the pen one step up
points the pen so it is pointing straight up
In the Python turtle module, the up() method (also known as penup()) is used to lift the pen. When the pen is lifted, moving the turtle (which acts as the "pen" in this drawing context) will not leave a mark (i.e., will not draw) on the screen. It has nothing to do with moving all drawings, moving the pen a specific "step" up in a coordinate - like sense, or changing the pen's pointing direction.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
"lifts" the pen so you can move it without drawing