Please help!
I need to write a programe, that would draw a picture like this:
http://yfrog.com/6ptreelj
I've tried with recoursion but it doesn't work properly.
from turtle import *
tree(n, lenght):
if n == 0:
lt(90)
fd(lenght)
rt(45)
fd(lenght/2)
bk(lenght/2)
lt(90)
fd(lenght/2)
bk(lenght/2)
rt(45)
else:
rt(135)
tree(n-1, lenght/2)