Skip to content

Commit dc456fe

Browse files
committed
Add Designer door mat
1 parent 2b683e0 commit dc456fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Designer_door_mat.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pattern = '.|.'
2+
a, b = map(int, input().split()) # 5 < a < 101 and 15 < b < 303
3+
4+
for i in range(1,a,2):
5+
print((pattern*i).center(b, '-'))
6+
7+
print('WELCOME'.center(b,'-'))
8+
9+
for i in reversed(range(1,a,2)):
10+
print((pattern*i).center(b, '-'))

0 commit comments

Comments
 (0)