width=int(input("Enter a width:")) height=int(input("Enter a height:")) filled=input("Filled (y/n):") p = "y" line=width * "+ " if filled == "y": while p == "y": if height > 0: print(line) height=height-1 else: p = "n" if filled == "n": print("error//I cant be bothered doing this//error")