You are viewing a single comment's thread. Return to all comments →
m, n = map(int, input().split())
def pat(m, n): i=0 j=m-1 while iz + ".|."(2*i+1) + "-"z) elif i==(m//2): print("-"((n-7)//2) + "WELCOME" + "-"((n-7)//2)) else: z=(n-3(2*j+1))//2 print("-"z + ".|."(2*j+1) + "-"*z) i+=1 j-=1
pat(m,n)
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 →
m, n = map(int, input().split())
def pat(m, n): i=0 j=m-1 while iz + ".|."(2*i+1) + "-"z) elif i==(m//2): print("-"((n-7)//2) + "WELCOME" + "-"((n-7)//2)) else: z=(n-3(2*j+1))//2 print("-"z + ".|."(2*j+1) + "-"*z) i+=1 j-=1
pat(m,n)