width = int(input ( "Enter a width: " ) ) height = int(input ( "Enter a height: " ) ) filled = input( "Filled (y/n): " ) line = 1 space = " " print() print( "Here is your box: " ) if filled == "y" : while line < height + 1 : print( width * " + " ) line = line + 1 if filled == "n" : while line < height + 1 : if line == 1 : print( width * " + " ) line = line + 1 width = width - 2 for multiplier in range (2, height) : print( " + " + space * width + " + " ) line = line + 1 width = width + 2 if line == height : print( width * " + " ) line= line + 1