w = int( input( "Enter a width" ) ) h = int( input( "Enter a height" ) ) f = input( "Filled? (y/n)" ) if f == "y" : while h > 0 : print( w * "+ " ) h = h - 1 else : print( w * "+ " ) w = w - 2 h = h - 2 while h > 0 : print( "+" + w * " ", "+" ) h = h - 1 h = h + 1 w = w + 2 print( w * "+ " )