width = int(input ("Enter a width: ")) height = int(input("Enter a height: ")) fill = input("Fill? y/n ") print (" ") print (" ") print ("Here is your box:") if fill == "n" : print("+ " * (width)) for number in range (1, (height - 2)) : print ("+", (" " * (width - 4)) ," " ,"+") print("+ " * (width)) else : for number in range (1, height) : print("+ " * width)