Drawing Pythagoras Tree using turtle graphics in Python This program generates a fractal tree by user input of max iterations End of animation (15 iterations):