Skip to content

Commit 193b8c4

Browse files
committed
Add Symbol Pattern 7
1 parent 9cdfac9 commit 193b8c4

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

Patterns/.DS_Store

6 KB
Binary file not shown.

Patterns/Symbol_Patterns/.DS_Store

6 KB
Binary file not shown.
Lines changed: 13 additions & 0 deletions
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:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
print_pattern()

0 commit comments

Comments
 (0)