text = (input("Enter some text:")) LEN = len(text) + 2 print("+" + "-" * LEN + "+") print("|" + " " + text + " " + "|") print("+" + "-" * LEN + "+")