width = int(input("Enter A Width:")) height = int(input("Enter A Height:")) filled = input("Do you want it filled y/n?") print("") print("Here is yor box:") lines = height spaces = width if filled == "n" or "N" : print("+ " * width) while lines > 0 : print('+ ', ' ' * spaces, '+ ') lines = lines - 1 print("+ " * width) if filled == "y" or "Y" : while lines > 0 : print("+ " * width) lines = lines - 1