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.
# get the # rows & columnsrows,columns=map(int,input().split())# define main patterndesign_1='.|.'design_2='-'foriinrange(1,rows+1):# top coneifi<=(rows//2) :print(((2*i-1)*design_1).center(columns,design_2))# centerelifi==(rows//2+1):print('WELCOME'.center(columns,design_2))# bottom coneelifi>(rows//2):print((((2*rows+1)-(2*i))*design_1).center(columns,design_2))
Cookie support is required to access HackerRank
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 →