Turtle Graphics

This lab was very fun and it was interesting to do. I faced a bit of difficulty doing the parts where I had to give instructions to the turtle to move a certain way in order to create the image that I had to create for the assignment. Nonetheless, turtle graphics was a fun way to test out more programming techniques.

import turtle
b = turtle.Screen()
b.bgcolor(“Red”)
Nirvana = turtle.Turtle()
Nirvana.color(“White”)
Nirvana.pensize(1)
import random
for x in range (0,100):
Nirvana.right (random.randrange(0,45,2))
distance = random.randint(0,150)
Nirvana.forward (distance)
Nirvana.backward (distance)