clear()
setSpeed(medium)
setPenColor(black)
repeat(10) {
setFillColor(randomColor)
repeat(4) {
forward(20) // Draws one side of the square
left(90) // Turns the turtle to prep for the next side
}
forward(20)
left(90)
forward(20)
right(90)// Turns the turtle slightly before drawing the next square
}