r wrote:
Thanks MRAB,
except the float is not 2 decimal places, but its there

Oops!

>>> '{0} {1:05} {2:.2f}'.format(s, n, f)
'python 00012 1.33'
>>> '{0:s} {1:05d} {2:.2f}'.format(s, n, f)
'python 00012 1.33'
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to