Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

complete the code to draw a line 30 steps to the right. leave a gap of …

Question

complete the code to draw a line 30 steps to the right. leave a gap of 20 steps. then draw anothe 15 more steps to the right. from turtle import from turtle import forward(30) forward(20) forward(15)

Explanation:

Step1: Lift the pen

turtle.penup()

Step2: Put the pen down

turtle.pendown()

Answer:

from turtle import *
forward(30)
penup()
forward(20)
pendown()
forward(15)