Centered Banner
Completed
Read a word and print it centred in a 20-character line padded with = signs.
Input
One word.
Output
A 20-character line, e.g. =======HELLO======== for HELLO.
Example
Input
HELLO
Output
=======HELLO========
Editor
Python
Hints
The fill character goes before the alignment symbol: {x:=^20}.
Solution explanation
The full form is {value:fill align width}. str.center(20, "=") does the same thing.
Show solution
word = input()
print(f"{word:=^20}")