Skip to content

Commit

Permalink
Merge pull request #281 from soham-1902/main
Browse files Browse the repository at this point in the history
Add Symbol Pattern 7
  • Loading branch information
Punit-Choudhary authored Oct 24, 2024
2 parents 9cdfac9 + a312b0c commit 9c09f64
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Patterns/Symbol_Patterns/code/Symbol_Pattern_7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Symbol Pattern 7

**Pattern Image:**

![image](https://github.com/Punit-Choudhary/Python-beginner-scripts/blob/main/Patterns/Symbol_Patterns/img/7.PNG)

**Contributor:** [Soham Pande](https://github.com/soham-1902)

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!

Discord server - http://pragmaticprogrammer.in/discord

Happy Coding :purple_heart:
10 changes: 10 additions & 0 deletions Patterns/Symbol_Patterns/code/Symbol_Pattern_7/symbol_pattern_7.py
Original file line number Diff line number Diff line change
@@ -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 comments on commit 9c09f64

Please sign in to comment.