Get the answers you need at Westonci.ca, where our expert community is always ready to help with accurate information. Join our Q&A platform to connect with experts dedicated to providing precise answers to your questions in different areas. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.
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

We appreciate your time. Please come back anytime for the latest information and answers to your questions. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. We're glad you visited Westonci.ca. Return anytime for updated answers from our knowledgeable team.