You are viewing a single comment's thread. Return to all comments →
n, m = map(int, input().split()) center_text = "WELCOME".center(m, '-') pattern = '.|.' center_row = int(n / 2) rug_step = 2 rug_width = 1 for i in range(n): if i == center_row: print(center_text) rug_step *= -1 else: print((pattern * rug_width).center(m, '-')) rug_width += rug_step
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 →