Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which draws a line while moving the pen 30 steps to the right? from tur…

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)

Explanation:

Brief Explanations

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.

Answer:

forward(30)