title: Drawing a fractal tree in Python
body: <p>I am trying to draw a fractal tree in Python, which has 3 branches. I know how to draw a tree with 2 branches, but with three branches...not sure
  Tried to find examples, but couldn`t. Only found examples of trees with two branches.
  Does anybody have any ideas how to do that?</p>
  
  <p>For 2 branches tree I used the following code:</p>
  
  <pre><code>import turtle
  def tree(f_lenght, min_lenght=10):
      """
      Draws a tree with 2 branches using recursion
      """
      turtle.forward(f_lenght)
      if f_lenght &gt; min_lenght:
          turtle.left(45)
          tree(0.6*f_lenght, min_lenght)
          turtle.right(90)
          tree(0.6*f_lenght, min_lenght)
          turtle.left(45)
      turtle.back(f_lenght)
  
  turtle.left(90)
  tree(100)
  turtle.exitonclick()
  </code></pre>