length: required , the length of the string after adding filling_char at both sides. filling_char : (optional), default is blank space, used at both sides of the string.
my_str="plus2net.com"
print(my_str.center(30))
Output is here ( there are blank spaces at both sides of the string. Total length of the output string is equal to 30)