Respuesta :
Answer:
A caterpillar has NUM_CIRCLES circles. ... Here's my code. ... Once I figure this out, I think I will be able to figure out the colors after some tinkering. ... Edit- I get everyone's concern about asking questions to developers who are busy.
Explanation:
Answer:
"""
This code will draw 8 circles t fore a multi colored caterpillar
"""
penup()
backward(140)
#define the fuction
def draw_circle(color_choice):
begin_fill()
color(color_choice)
circle (20)
end_fill()
forward(40)
#for loop to draw 8 circles
for i in range (8):
color_choice=input("Enter color:") #ask the user what color per circle
draw_circle(color_choice) #calling the functionExplanation: