You are viewing a single comment's thread. Return to all comments →
n = int(a) m = int(b) mid = (n // 2) + 1 d = '-' l = '.|.' for i in range(1, n + 1): if i < mid: num_blocks = (2 * (i - 1)) + 1 print((l * num_blocks).center(m, d)) elif i == mid: print("WELCOME".center(m, d)) else: num_blocks = (2 * (n - i)) + 1 print((l * num_blocks).center(m, d))
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 →