word = input('Enter some text: ') len = (len(word)) print('+', '-' * len, '+') print('|', word, '|') print('+', '-' * len, '+')