def draw_tree
:
for i in range(1, n+1):
spaces = " " * (n - i)
stars = "*" * (2*i - 1)
print(spaces + stars)
def decorate_tree
:
for i in range(1, n+1):
spaces = " " * (n - i)
stars = "*" * (2*i - 1)
print(spaces + stars)
n = int(input("Введите количество елочек: "
)
for i in range(1, n+1):
print(f"Елочка {i}:"
draw_tree(i)
decorate_tree(i)