width = int( input ('Enter a width')) height = int( input ('Enter height')) height2 = 2 width2 = width - 4 if width == 1 and height == 1 : print ('Nice try but I cant be bothered to fix it') fill = input('Fill? [Y/N]') if fill == 'y' or fill == 'Y' : print ("+" * width) while height2 < height : print ("+" * width) height2 = height2 + 1 else : height2 = 2 print ("+" * width) while height2 < height : print ('+', ' ' * width2, '+') height2 = height2 + 1 print ('+' * width)