QUESTION IMAGE
Question
which draws a line while moving the pen 30 steps to the right?
from turtle import *
right(30)
drawright(30)
move(30)
forward(30)
In Python's turtle graphics library, the forward() function is used to move the turtle (which can be thought of as the "pen") forward by a specified number of steps, thus drawing a line. The right() function turns the turtle to the right by a given angle (not moving it forward to draw a line). drawright is not a valid turtle function. move is also not a standard turtle function for this purpose.
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
forward(30)