Returns the string centered in a string of specified length.
str. center(width[, fillchar])
- width
- Required. The width of the field containing the string.
- fillchar
- Optional. Specifies the padding character (default is a space).
str
#TODO
The original string is returned if width is less than or equal to len(str).
>>> "ABC".center(10)
' ABC '
>>> "ABC".center(10, "#")
'###ABC####'
>>> "ABC".center(2, "#")
'ABC'