1 2 3 4 5 6 7 8
def christmas_tree(n): i = 0 while i < n: if i <= 2: print "*" else: print "*"*(i-1) i+=1