Lab Description: In this lab we created a turtle blast using python. The purpose of this lab is to help us better understand strings and lists.
Codes:
import turtle
import random
wn = turtle.Screen()
wn.bgcolor(“red”)
alex = turtle.Turtle()
alex.color(“white”)
for i in range (100):
alex.right(45)
alex.forward(75)
alex.back(75)
alex.right(25)
alex.forward(125)
alex.back(125)
alex.right(35)
alex.forward(140)
alex.back(140)