I am creating a simple console-based Python (version 2.4) script that will be run on a Bash shell. It is a simple menu-based script that displays a set of options to the use
You can use str.center
s = "hello world" s.center(40) >>> ' hello world '