Run
x = "Hello World" result = x.center(21) print(f"Given string : \"{x}\"") print(f"Centered string : \"{result}\"")
Output