Merry Christmas to all Pythonistas

Some Christmas code… Merry Christmas to everybody! What will this code do?

def tree():
    x = "^"
    y = " "
    for n in range(0, 20, 2):
        if n == 0:
            print("          *")
        print(y * (10 - int(n / 2)) + (x * n) + x + y * (10 - int(n / 2)))
    print("_________||__________\n")


tree()

Output

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.