width = int(input("Enter a width: ")) height = int(input("Enter a height: ")) print("Here is your box") for _ in range(height): print("+ " * width) width = int(input("Enter a width: ")) height = int(input("Enter a height: ")) filled = input("Filled (y/n): ").lower() print("Here is your box:") if filled == "y": for _ in range(height): print("+ " * width) else: if height >= 1: print("+ " * width) for _ in range(height - 2): if width == 1: print("+") else: print("+ " + " " * (width - 2) + "+") if height > 1: print("+ " * width)