Lab 2: Turtle Blast
Lab Description:
This lab apply the knowledge learned in the previous labs, and classes to create
code:
import turtle import random wn = turtle.Screen() wn.bgcolor("red") alex = turtle.Turtle() alex.pencolor("white") for num in range(100): n = random.randint(0,45) distance = random.randint(0,150) alex.right(n) alex.forward(distance) alex.backward(distance)