From cecd9111b076cfacecc56df7dc8bbed0c3c6abda Mon Sep 17 00:00:00 2001 From: prayforstpetersburg1991 Date: Fri, 11 Oct 2024 11:21:47 +0200 Subject: [PATCH] init commit --- test.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..9a47eb4 --- /dev/null +++ b/test.py @@ -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) \ No newline at end of file