From 61604fad97ea08174aa044e5f2d56bd05c716458 Mon Sep 17 00:00:00 2001 From: liyanalyahmadi12 Date: Sun, 14 Sep 2025 09:58:27 +0400 Subject: [PATCH 1/2] star pyramid --- examples/from_liyan/systemstarpyramid.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 examples/from_liyan/systemstarpyramid.py diff --git a/examples/from_liyan/systemstarpyramid.py b/examples/from_liyan/systemstarpyramid.py new file mode 100644 index 00000000..e69de29b From 02477065328069c4d3e0b88f4f35c7b1e959553c Mon Sep 17 00:00:00 2001 From: liyanalyahmadi12 Date: Mon, 15 Sep 2025 10:38:25 +0400 Subject: [PATCH 2/2] fixed empty --- examples/from_liyan/systemstarpyramid.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/from_liyan/systemstarpyramid.py b/examples/from_liyan/systemstarpyramid.py index e69de29b..dd4595b5 100644 --- a/examples/from_liyan/systemstarpyramid.py +++ b/examples/from_liyan/systemstarpyramid.py @@ -0,0 +1,10 @@ +# Pyramid Pattern Generator +#hi + +rows = int(input("Enter number of rows: ")) + +for i in range(1, rows + 1): + + spaces = " " * (rows - i) + stars = "*" * (2 * i - 1) + print(spaces + stars)