Question: Write a program that uses turtle graphics to generate the image below: Hints: Let the turtle move forward 200 steps and use the sequence forward/left/stamp.

Write a program that uses turtle graphics to generate the image below:Write a program that uses turtle graphics to generate the image below:

Hints: Let the turtle move forward 200 steps and use the sequence forward/left/stamp. This assignment aims to challenge you to analyze the image to deduce the process (given a description of the output, write the program to produce it), which is how software developers often approach problems. So what should you do? Try to puzzle out the image, break down what the turtle does, then apply what you have learned so far about definite loops (for loops) and turtle graphics to reproduce that process. Here some guiding questions:

  • How many turtles do you see? How many repetitions?
  • What does the turtle do in each repetition?
  • Once you figured out the answer to the previous two questions, play around with the angle to produce the image.
  • Look up the turtle functions pencolor() and fillcolor() to produce the turtle colors?
  • You have used that background color before, what color was it?(Cyan)
  • Use Idle(python)

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 Databases Questions!