import turtle # give the turtle name; clever = turtle.Turtle() clever.color('green') clever.speed(0)
def draw_square(): for side in range(4): clever.forward(100) clever.right(90) for anothersquare in range(4): clever.forward(50) clever.right(90)
draw_square() def lotofsquare(): for square in range(30): clever.color('green') draw_square() clever.penup() clever.forward(20) clever.left(50) clever.pendown() lotofsquare()