Skip to content

Commit 9c09f64

Browse files
Merge pull request #281 from soham-1902/main
Add Symbol Pattern 7
2 parents 9cdfac9 + a312b0c commit 9c09f64

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Symbol Pattern 7
2+
3+
**Pattern Image:**
4+
5+
![image](https://github.com/Punit-Choudhary/Python-beginner-scripts/blob/main/Patterns/Symbol_Patterns/img/7.PNG)
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:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def print_pattern():
2+
rows = 5 # Number of rows in the pattern
3+
for i in range(rows, 0, -1):
4+
# Print leading spaces to align the stars
5+
print(" " * (rows - i), end="")
6+
# Print stars for the current row
7+
print("* " * i)
8+
9+
10+
print_pattern()

0 commit comments

Comments
 (0)