You are viewing a single comment's thread. Return to all comments →
solution
width = int(input()) letter = "H" # upper cone for i in range (0,width): print ((letter+(2*i*letter)).center(width*2-1, " ")) # H letter for _ in range (0,width+1): print (" "*(width//2)+ letter * width + " " *(width*3) + letter * width ) for _ in range (0,width//2+1): print(" "*(width//2) + letter * 5 * width) for _ in range (0,width+1): print (" "*(width//2)+ letter * width + " " *(width*3) + letter * width ) # lower cone for i in range (0,width): print ((((letter*(width-1-i))+ letter + (letter*(width-1-i))).center(width*2-1, " ")).rjust(width*6-1," "))
Seems like cookies are disabled on this browser, please enable them to open this website
Text Alignment
You are viewing a single comment's thread. Return to all comments →
solution