You are viewing a single comment's thread. Return to all comments →
Use .center() method in all 3 print()'s.
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, "-"))
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 →
Use .center() method in all 3 print()'s.