File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
Patterns/Symbol_Patterns/code/Symbol_Pattern_7 Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 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 number Diff line number Diff line change 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 ()
You can’t perform that action at this time.
0 commit comments