Turtle Blast

This program was an exercise in drawing shapes using python code. I used the turtle library, which gave me functions to control the drawing tool or “turtle”. Using the directional commands from the turtle library I had the turtle draw 100 white lines in a fixed range. I imported the random library in order to allow lines to be drawn of any length in range of 0 to 150 while turning anywhere between 0 and 45 degrees. The star pattern is created by using the for loop to repeat instructions to draw a line and returning to it’s starting position.

Python code for the Turtle Blast program.

Python code for the Turtle Blast program.

Output from running the Turtle Blast program.

Output from running the Turtle Blast program.