init commit

This commit is contained in:
prayforstpetersburg1991 2024-10-11 11:21:47 +02:00
commit cecd9111b0

8
test.py Normal file
View File

@ -0,0 +1,8 @@
def print_tree(height):
for i in range(height):
print(' ' * (height - i - 1) + '*' * (2 * i + 1))
print(' ' * (height - 1) + '|')
if __name__ == "__main__":
tree_height = 5 # You can change the height of the tree here
print_tree(tree_height)