Python Turtle random

import turtle
import random
WN = turtle.Screen()
WN.bgcolor(“Red”)

allan = turtle.Turtle()
allan.color(“White”)
allan.pensize(“5”)

for i in range(100):
angle = random.randint(0,45)
distance = random.randint(0,150)
allan.fd(distance)
allan.backward(distance)
allan.rt(angle)
WN.mainloop()

Conclusion: In class, I learned how to use the turtle module and how to draw with turtle. This is a script of turtle using the for loop to create random lines with angles within 0-45 degrees and distances within 0-150 pixels one hundred times.