hacker rank python(Designer Door mat)solution

DESIGNER DOOR MAT


 # Enter your code here. Read input from STDIN. Print output to STDOUT

N,M=map(int,str(raw_input()).split())
for i in range(1,N,2):
    print((i*".|.").center(M,'-'))
print("WELCOME".center(M,'-'))
for j in range(N-2,-1,-2):
    print((j*".|.").center(M,'-'))




Comments

dreamcare said…
It’s very good article! For sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing! Shelf Mat Sheets

Unknown said…

It’s very good blog! For sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing!Shelf Mat Sheets
Unknown said…

It’s very good blog! For sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing!Shelf Mat Sheets

Popular posts from this blog

Amazon Web Services

Hacker Rank all java and python problem solutions

DJANGO - a web frame work of python (part-1)