Hi Larry,
I can program in Python but I have a huge aversion to
a programming
language that doesn't include printf in the base language.
Python has Perl's sprintf() but as the ‘fmt % values’ operator rather
than a function. So it isn't just available for printing but general
string formatting.
>> mol = '%04d' % (6 * 7)
>> print('%08x %-8s' % (826366246, mol))
31415926 0042
--
Cheers, Ralph.