Professional Documents
Culture Documents
Graphics. Use The Following Guidelines To Write Your Program
Graphics. Use The Following Guidelines To Write Your Program
Graphics. Use The Following Guidelines To Write Your Program
02 for Loops
Part One: Write a program to draw a repetitive pattern or outline of a shape using for loops and Turtle
Graphics. Use the following guidelines to write your program.
Import turtle
Def main()
Define turtles
Part Two: Code the program. Use the following guidelines to code your program.
Example of expected output: The output for your program should resemble the following screen shot.
Your specific results will vary depending on the choices you make and the input provided.
Insert a copy of your code from IDLE here:
import turtle
def main():
debil = turtle.Turtle()
debil.color("black")
debil.speed(1000)
debil.setposition(0, 0)
bird = turtle.Turtle()
bird.color("yellow")
bird.speed(1000)
bird.setposition(0, 0)
frog = turtle.Turtle()
frog.color("red")
frog.speed(1000)
frog.setposition(0, 0)
print("Modern Hexagon House")
for img in range(30):
bird.forward(50)
bird.left(60)
debil.forward(75)
debil.left(60)
frog.forward(100)
frog.left(60)
main()
Part Three: Complete the Post Mortem Review (PMR). Write thoughtful two to three sentence responses
to all the questions in the PMR chart.
Review Question Response
What was the purpose of your program? To create pleasing images
How could your program be useful in the real Could boom in the entertainment and leisure
world? industry for relaxation
What is a problem you ran into and how did you fix The turtles wouldn’t move the way I wanted so I
it? tweaked around with the ranges
Describe one thing you would do differently the Make the ranges more specific and narrower
next time you write a program.