From: Robert Klemme Date: 2007-07-25T18:37:41+09:00 Subject: Re: Formatting text. 2007/7/25, Marcin Tyman : > Hi again :-) > Is there any way to format a string. I.E. I've got a variable which may > be 1, 2, 3 and the variable is added to string. I want to show whole > string formatted as follows: > 100 > 1 > 10 > 1100 > > not like that: > 100 > 1 > 10 > 1100 > > Any help would be helpful (as always ;-) ) Please look for printf, sprintf and % in the docs. The last one might be hard to find. You use it as: "%3d" % 1 Kind regards robert