Skip to content

Commit fdfe7e1

Browse files
committed
added more letter patterns
1 parent 07cfffd commit fdfe7e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

O - Shape.py

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

0 commit comments

Comments
 (0)