From d7cc84b0ae816b49ca73e8ad79957ab54a8f3836 Mon Sep 17 00:00:00 2001 From: jbsch Date: Wed, 2 Oct 2024 12:06:19 +0530 Subject: [PATCH] Added Symbolic Pattern 92 --- Symbol Patterns/symbolicpattern92.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Symbol Patterns/symbolicpattern92.py diff --git a/Symbol Patterns/symbolicpattern92.py b/Symbol Patterns/symbolicpattern92.py new file mode 100644 index 00000000..176e532e --- /dev/null +++ b/Symbol Patterns/symbolicpattern92.py @@ -0,0 +1,15 @@ +def generate_pattern(): + rows = 8 # Total number of rows (odd number to form the shape) + + for i in range(rows): + if i == 0 or i == rows - 1: + print(" " * 6 + "*") + elif i == 1 or i == rows - 2: + print(" " * 5 + "- -") + elif i == 2 or i == rows - 3: + print(" " * 4 + "- -") + elif i == 3 or i == rows - 4: + print(" " * 3 + "- -") + + +generate_pattern() \ No newline at end of file