title: Recursive method of shrinking triangles in Python
body: <p>If you run the following code, it creates two side by side drawings of what I am attempting to create. I need to figure out how to make the recursive method stop after drawing it the first time.</p>
  
  <pre><code>import turtle
  
  def drawTriangle(size):
      turtle.left(30)
      turtle.forward(size)
      turtle.right(120)
      turtle.forward(size)
      turtle.right(120)
      turtle.forward(size)
      turtle.right(120)
      turtle.up()
      turtle.forward(size)
      turtle.right(30)
      turtle.down()
  
  def drawTriangles(size, depth):
      if (depth &lt; 1):
          pass
      else:
          drawTriangle(size)
          drawTriangles(size / 2, depth - 1)
          turtle.up()
          turtle.left(30)
          turtle.forward(-size)
          turtle.right(120)
          turtle.forward(size * 2)
          turtle.left(90)
          turtle.down()
          drawTriangle(size)
          drawTriangles(size / 2, depth - 1)
          turtle.up()
          turtle.left(30)
          turtle.forward(-size)
          turtle.left(60)
          turtle.forward(size * 2)
          turtle.right(90)
          turtle.down()
  turtle.home()
  turtle.left(90)
  turtle.down()
  turtle.speed("normal")
  drawTriangles(100, 4)
  input("pause")
  </code></pre>