Skip to content

Commit 8703bd1

Browse files
committed
added more letter patterns
1 parent 031c979 commit 8703bd1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

N - Shape.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# Python Pattern Program Printing Stars in "N" Shape
22

3+
for r in range(6):
4+
for c in range(6):
5+
if (c == 0 or c == 5) or (r == c and (c > 0 and c < 5)):
6+
print("*", end=" ")
7+
else:
8+
print(end=" ")
9+
print()

0 commit comments

Comments
 (0)