Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.
Sagot :
Answer:
speed(0)
penup()
setposition(-200,-200)
pendown()
def draw_square_row():
color_value = 0
for i in range (10):
if color_value %2 == 0:
begin_fill()
color("red")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
elif color_value %2 == 1:
begin_fill()
color("black")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
def draw_square_row_2():
color_value = 1
for i in range (10):
if color_value %2 == 0:
begin_fill()
color("red")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
elif color_value %2 == 1:
begin_fill()
color("black")
for i in range (4):
forward(40)
left(90)
forward(40)
color_value = color_value + 1
end_fill()
def move_up_a_row():
left(90)
forward(40)
right(90)
backward(400)
for i in range (5):
draw_square_row()
move_up_a_row()
draw_square_row_2()
move_up_a_row()
Explanation:
tell me if you get it right
Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. Thank you for visiting Westonci.ca, your go-to source for reliable answers. Come back soon for more expert insights.