You are viewing a single comment's thread. Return to all comments →
N, M = [int(x) for x in input().split()]
a = 'WELCOME'
b = '.|.'
for i in range(N//2): pattern = (b * (2 * i + 1)).center(M, '-') print(pattern)
print(a.center(M, '-'))
for i in range(N//2-1, -1, -1): design = (b * (2 * i + 1)).center(M, '-') print(design)
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 →
N, M = [int(x) for x in input().split()]
a = 'WELCOME'
b = '.|.'
for i in range(N//2): pattern = (b * (2 * i + 1)).center(M, '-') print(pattern)
print(a.center(M, '-'))
for i in range(N//2-1, -1, -1): design = (b * (2 * i + 1)).center(M, '-') print(design)