Skip to content

Commit 4f85e71

Browse files
committed
added more letter patterns
1 parent 19ea313 commit 4f85e71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

R - Shape.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Python Pattern Program Printing Stars in "R" Shape
2+
for r in range(7):
3+
for c in range(5):
4+
if c== 0 or ((r == 0 or r == 3) and(c<4)) or (c == 4 and (r>0 and r< 3)) or (r == c+2 and c>0):
5+
print("*",end=" ")
6+
else:
7+
print(end=" ")
8+
print()

0 commit comments

Comments
 (0)