We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Designer Door Mat
- Discussions
Designer Door Mat
Designer Door Mat
Sort by
recency
|
1631 Discussions
|
Please Login in order to post a comment
N, M = map(int, input().split()) for i in range(1, N, 2): print((".|."*i).center(M, "-"))
print("WELCOME".center(M, "-"))
for i in range(N-2, -1, -2): print((".|." *i).center(M, "-"))
N, M = map(int, input().split()) for i in range(1, N, 2): print((".|."*i).center(M, "-"))
print("WELCOME".center(M, "-"))
for i in range(N-2, -1, -2): print((".|." *i).center(M, "-"))