Return a centered string of length width. Padding is done using the specified fill character (default is a space).
>>> 'Python'.center(10) ' Python ' >>> 'Python'.center(10, '-') '--Python--' >>> 'Python'.center(4) 'Python'
builtins/str.center
str.center