We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9cdfac9 + a312b0c commit 9c09f64Copy full SHA for 9c09f64
Patterns/Symbol_Patterns/code/Symbol_Pattern_7/README.md
@@ -0,0 +1,13 @@
1
+# Symbol Pattern 7
2
+
3
+**Pattern Image:**
4
5
+
6
7
+**Contributor:** [Soham Pande](https://github.com/soham-1902)
8
9
+:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
10
11
+Discord server - http://pragmaticprogrammer.in/discord
12
13
+Happy Coding :purple_heart:
Patterns/Symbol_Patterns/code/Symbol_Pattern_7/symbol_pattern_7.py
@@ -0,0 +1,10 @@
+def print_pattern():
+ rows = 5 # Number of rows in the pattern
+ for i in range(rows, 0, -1):
+ # Print leading spaces to align the stars
+ print(" " * (rows - i), end="")
+ # Print stars for the current row
+ print("* " * i)
+print_pattern()
0 commit comments