Método de formato de Python Centro de alineación
print("{:^thenumberofchractersinthisline}".format("the string"))
Pleasant Pony
print("{:^thenumberofchractersinthisline}".format("the string"))