width = int(input("Enter a width: ")) height = int(input("Enter a height: ")) filled = input("Filled (y/n): ") print() print("Here is your box:") if filled == "y": for meow in range (0, height): print("+ " * width) else: print("+ " * width) for meow in range (2, height): print("+", " " * ((width * 2) - 3), "+") print("+ " * width)