text = input("Enter a text:") boxed = ("-" * len(text)) print("+"+ boxed + "+") print("|"+text+"|") print("+"+boxed+"+")