You are viewing a single comment's thread. Return to all comments →
n,m=map(int,input().split()) s1=".|." s2="WELCOME"
for i in range(n//2): print((s1*((i*2)+1)).center(m,'-'))
print(s2.center(m,'-'))
for j in range(n//2-1,-1,-1): print((s1*((j*2)+1)).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 →
Enter your code here. Read input from STDIN. Print output to STDOUT
n,m=map(int,input().split()) s1=".|." s2="WELCOME"
Part1
for i in range(n//2): print((s1*((i*2)+1)).center(m,'-'))
part2
print(s2.center(m,'-'))
part3
for j in range(n//2-1,-1,-1): print((s1*((j*2)+1)).center(m,'-'))