Medium
Centre a Word
Read a word and a width. Print the word centred in that width between bars, using
str.center(), like | hi |.Input
A word, then an integer.
Output
One line.
Sample 1
Input
hi 6
Output
| hi |
Sample 2
Input
Python 10
Output
| Python |
Output appears here