recursive_tree_numworks.py
This script draws recursively generated trees.
The function
def branch(length, depth, width):
recursively calls itself, when recursion limit is not yet reached
it draws a branch and calls itself twice after changing the heading
when recursion limit is reached it draws a leaf
A lot of the tree’s parameters have random variation.
The code uses Turtle graphics for drawing, the timer function to wait after each tree and random to introduce random variations.