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