formatting strings to have the same width

spohle spohle at gmail.com
Sun Mar 18 00:17:08 CET 2007


sorry the code should read:

foo = ["aaa", "1232"]
for each in foo:
    print each.center(10, " ") + " | "




More information about the Python-list mailing list