length_verticle = 0 width = int(input("Enter a width:")) height = int(input("Enter a height:")) to_height = 0 fill = input('Filled? (y/n):') print("Here is your box:") if height and width == 1: print("+") else: if fill == "y": while to_height < height: print('+ ' * width) to_height = to_height + 1 if fill == "n": print("+ " * (width)) height = height - 2 while to_height < height: print("+", ' ' * ((width - 3) * 2), ' +') to_height = to_height + 1 height = height - 2 print("+ " * (width))