Skip to content

Commit 23b0477

Browse files
author
=Steavo
committed
updated patterns
1 parent a996aac commit 23b0477

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

patterns.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
'''
1+
22
for r in range(5):
33
for c in range(r):
4-
print("#",end=" ") #end =" " is used such that the control wont go to the next line
5-
print() #used for getting into new line // print("\n") can also be used
6-
'''
7-
'''
4+
print("#",end=" ") #end =" " is used such that the control wont go to the next line
5+
print() #used for getting into new line // print("\n") can also be used
6+
7+
88
for r in range(4):
99
for c in range(r+1):
10-
print("#",end=" ") #end =" " is used such that the control wont go to the next line
11-
print() #used for getting into new line // print("\n") can also be used
12-
'''
13-
'''
14-
for r in range(4,0,-1): #range(4)
15-
for c in range(r): # range(4-r)s
16-
print("#",end=" ") #end =" " is used such that the control wont go to the next line
17-
print() #used for getting into new line // print("\n") can also be used
10+
print("#",end=" ")
11+
print()
12+
13+
14+
for r in range(4,0,-1):
15+
for c in range(r):
16+
print("#",end=" ")
17+
print()
1818

19-
'''
19+
#Code by Steavo Babu

0 commit comments

Comments
 (0)