width= int(input("Enter a width:")) height= int(input("Enter a height:")) filled=input("Filled (y/n): ") bigwidth= width bigheight=height print("Here is your box:") if width==1 or height==1: print(" +") quit() if filled=="n": print(" +"*width) bigwidth= bigwidth-2 bigheight=bigheight-2 while True: if bigwidth<1 or bigheight<1: print( " +"*width) break print(" +"," "*width," +") bigwidth= bigwidth-1 bigheight=bigheight-1 if bigwidth<1 or bigheight<1: print( " +"*width) break else: while True: print(" +"*width) bigwidth=bigwidth-1 bigheight=bigheight-1 if bigwidth==0 or bigheight==0: break