You are viewing a single comment's thread. Return to all comments →
design = ".|." greeting = "WELCOME"
[m,n] = list(map(int, input().split()))
for i in range(m//2): print((design*i).rjust(n//2 - 1, '-') + design + (design*i).ljust(n//2 - 1, '-'))
print(greeting.center(n, '-'))
for i in range(m//2 - 1, -1, -1): print((design*i).rjust(n//2 - 1, '-') + design + (design*i).ljust(n//2 - 1, '-'))
Seems like cookies are disabled on this browser, please enable them to open this website
Designer Door Mat
You are viewing a single comment's thread. Return to all comments →
design = ".|." greeting = "WELCOME"
[m,n] = list(map(int, input().split()))
for i in range(m//2): print((design*i).rjust(n//2 - 1, '-') + design + (design*i).ljust(n//2 - 1, '-'))
print(greeting.center(n, '-'))
for i in range(m//2 - 1, -1, -1): print((design*i).rjust(n//2 - 1, '-') + design + (design*i).ljust(n//2 - 1, '-'))