Skip to content

Commit 4bd9c77

Browse files
authored
Create Designer_DoorMat.Py
1 parent 1375f71 commit 4bd9c77

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Pattern/Designer_DoorMat.Py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
N, M = map(int,input().split()) # More than 6 lines of code will result in 0 score. Blank lines are not counted.
2+
for i in range(1,N,2):
3+
print ('-'*int((M-3*i)/2) +'.|.'*i + '-'*int((M-3*i)/2))
4+
print ('-'*int((M-7)/2)+'WELCOME'+'-'*int((M-7)/2))
5+
for i in range(N-2,-1,-2):
6+
print ('-'*int((M-3*i)/2) +'.|.'*i + '-'*int((M-3*i)/2))
7+
8+
9+
10+
'''Size: 7 x 21
11+
---------.|.---------
12+
------.|..|..|.------
13+
---.|..|..|..|..|.---
14+
-------WELCOME-------
15+
---.|..|..|..|..|.---
16+
------.|..|..|.------
17+
---------.|.---------
18+
'''

0 commit comments

Comments
 (0)