> Alan Gauld wrote:
>> unfortunately 3 values won't work, it only works for numbers...
>> 
>>>>> "%**.*" % ('-', 12,3,123.456789)
>> 
>> Error...
> 
> How about this:
> In [4]: "%*.*f" % (-12,3,123.456789)
> Out[4]: '123.457     '

Silly me! Obvious when you see it :-)

Alan G.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to