Question: Could you perform steps 2 9 - 3 1 ( adding eyes and altering the legs of the spider ) ? Hint 1 : Since

Could you perform steps 29-31(adding eyes and altering the legs of the spider)? Hint 1: Since the legs need to be rendered on opposite sides of the body, you need to use two different heading calculations based on which legs you are rendering.Hint 2: In the while loop, if you are rendering the first four legs, use one heading calculation; on the other side, use another heading calculationHint 3: Assume the previous version of your program used the heading (angle*leg). The two new headings should be similar to (angle*leg -45) and (angle*leg +45). Note that the exact value added or subtracted will depend on how much you have reduced the configuration variable angle. # a116_buggy_image.pyimport turtle as trtl# instead of a descriptive name of the turtle such as painter,# a less useful variable name x is usedspider = trtl.Turtle()spider.pensize(40)spider.circle(20)spider_legs =6leg_length =70z =380/ spider_legsspider.pensize(5)counter =3while (counter < spider_legs): spider.goto(0,0) spider.setheading(z*counter) spider.forward(leg_length) counter = counter +1while (counter < spider_legs): spider.goto(0,60) spider.setheading(z*counter) spider.forward(leg_length) counter = counter +1spider.hideturtle()wn = trtl.Screen()wn.mainloop()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!