Skip to content

Commit 08c449e

Browse files
authored
Create main1.py
1 parent 4bf01a0 commit 08c449e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Designer Door Mat/main1.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Enter your code here. Read input from STDIN. Print output to STDOUT
2+
n, m = map(int, input().split())
3+
PATTERN = ".|."
4+
5+
#top
6+
for i in range(n):
7+
if not i % 2 == 0:
8+
print((PATTERN * i).center(m, "-"))
9+
#middle
10+
else:
11+
print("WELCOME".center(m,"-"))
12+
13+
#bottom
14+
15+
for i in reversed(range(n)):
16+
if not i%2==0:
17+
print((PATTERN*i).center(m,"-"))

0 commit comments

Comments
 (0)