[ create a new paste ] login | about

Link: http://codepad.org/SkIDuRci    [ raw code | fork ]

Python, pasted on Nov 2:
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


Output:
No errors or program output.


Create a new paste based on this one


Comments: