You are viewing a single comment's thread. Return to all comments →
N, M = map(int, input().split(' ')) count = 1 for _ in range(N // 2): print(f"{'.|.' * count:-^{M}}") count += 2 print(f"{'WELCOME':-^{M}}") for _ in range(N // 2): count -= 2 print(f"{'.|.' * count:-^{M}}")
modern method using formatting string 👍
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 →
modern method using formatting string 👍